Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
lol, yes
This comment is hidden because it contains spoiler information about the solution
You're right! The factorization process takes care of that automatically. I realized that shortly after hitting submit, so I don't use it in my later solutions requiring prime factorization. Here's a fun example https://www.codewars.com/kata/54d496788776e49e6b00052f/julia Cheers!
it's shorthand for
I don't think it really needs the
? true : false
since
i.second > 1
will already return a boolThis comment is hidden because it contains spoiler information about the solution
It took me too long to understand what the hell I did after this time :).