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 comment is hidden because it contains spoiler information about the solution
My suggestion, if someone have problem with runtime, cheсk the input values ESPECIALLY bouncing.
The random tests are just 1000 random numbers between 0 and
Int32.MaxValue
. Your solution doesn't cover all possible cases. You only check if something is divisible by 2, 3, 5, or 7... if it's not then you declare the number as prime. There are plenty of numbers which aren't divisible by those numbers but are divisible by other numbers. 361, for example isn't prime, but isn't divisible by any of those numbers.What is this Random tests? I tried 2 options of solving and only Random tests is failing. Why? What kind of tests are there?
Problem,is that in VS it runs fine with all inputs, but here it output: "
Your code fails with this single input:
"Welcome"
. I sincerely doubt the same code works fine with this input in VSC.Why in VS 2019 everything works and when I check it here it's not?