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 think your issue is you're getting stuck in an infinite while loop when the solution doesn't reduce to 0. The random tests include random numbers that won't necessarily reduce to 0 and should return false.
Hope that helps!
Could you post your solution so I could try and replicate your problem? Thanks!
I think that if you're going to count twin primes that include n + 1 you should state that in the description as it was unclear before I ran the tests.
Thanks for the feedback! I've now added random tests :)
Thanks for the feedback!
I've changed the kata so now the required output for errors is
false
, do you think that is sufficient or do I need to put it a try/catch error handler for best practise?