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 is because your algoritm is not efficient enought. You can't just iterate throught all numbers between 2 and passed value because you will exceed allowed execution time - tests are written in that way so you have to use basic math to find the solution.
Yep, this Kata sucks. I tried 3 different approaches locally and works fine while here I constantly gets timeouts.