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.
Good job! I don't know why someone should reinvent the wheel, when there is a tested library, that does exactly that.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
If you use n = 1000000000 as argument, the naive solution takes 39.2 seconds. The solution with prime factors only 4.2e-05 seconds. Yes, 42µs. Literally a million times faster.
I implemented the iterative algorithm of complexity O(log n), but it is too slow. Any hints?
This comment is hidden because it contains spoiler information about the solution
This is hillarious! Great!
I see, what you did there...
This comment is hidden because it contains spoiler information about the solution