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.
This comment is hidden because it contains spoiler information about the solution
3 years and no news from OP, closing.
@coreyoconnor please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
yeah, I know, but I came from C#, where it is must have, so it's just a habit
This comment is hidden because it contains spoiler information about the solution
its a bitwise comparison
mmm, weird... Can you post your code (with appropriate markdown and spoiler flag)?
Im a little confused as too what your asking. If n is greater than the sum of its digits raised to the (p + i) power, then the final step of (sum % n) will never return 0, causing the method to return -1.