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.
That's exactly what I did :)
Still, number
11 004 979
is orders of magnitude smaller than possible max. Testing for some close-to-max prime would be more reasonable test (well, assuming this kind of benchmark can be reasonable in general).Why are you testing on the easiest numbers to check, instead on the difficult numbers?
This code was checked number 2 000 000 000 in 35 000 nanoseconds
Ouch! The time complexity is O(n^3), when it can be done in linear time.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution