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.
the best code i ever seen
Excellent code indeed!
This comment is hidden because it contains spoiler information about the solution
tmp is pretty ambiguous. For readability/maintainability, you might want to call tmp 'sum'
Added more tests.
Done.
Because of limited tests. I have added some(200) random tests, so cheating would be a bit harder now.
Could you resolve the issue as I can't?
That's not a kata issue. Most likely a problem with the internet connection, your browser or the codewars server.
Could you resolve the issue?
Should first of all try easy examples, such as 9, 15, 21 etc. Most of the solutions only check for modulo 2, which only checks for odd/even.
Try it with 9 (which is not a prime number) => buggy :D