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.
Awesome, glad to help.
Do you have using System; at the top?
Have you tried searching for the meaning of an error message?
Simply add this line:
Console.WriteLine(n);
in the beginning of your solution, and you will get some lines printed in the tests output panel.Your solution is almost good, lacks one minor fix, and fails for some specific cases. Do you know how to print input
n
and see for what numbers your solution fails? Try it for, for example,243193867
which is not prime (it can be factorized into7×34741981
), but your solution reports it as prime.