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.
I agree with you that this problem could become more challenging by adding test cases with some large perfect powers. However, I tried your solution on
isPP(7078198741908749 ** 3)
and it returnedNone
.Whatever the mathematical definitions, this kata's talking about determining if building blocks can be arranged in squares vs. rectangles. If you have 0 blocks, you can't arrange your lack of blocks into a square. ;-)
*sigh*, I should have added some corner cases. :/.