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 used trial division and it was too slow, but then i looked for other factors in my code to improve the execution time, and was able to greatly reduce the excecution time. As a somewhat spoiler free hint, i thnk that memoization was a big factor for making it, mine in particular, faster.
I have the same issue. But how to optimize the code? I've tryied, but can not pass the test.
It's there ^
No, (21-21)+(21-20)+...