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 can't submit the code, I did the recommendations, but I don't Understand what happen with this.
basically that means you've passed the kata and that message is giving you the option to remove any debugging code like console logs or temp variables or even to reduce the code if possible. but if you have nothing to change just click submit again. If this helps please resolve this issue :)
passed all test but..show the message " Correct! You may take your time to refactor/comment your solution. Submit when ready."
Some spelling mistakes on the word 'divided' spelt here as 'devided'.
Also, may want to add some tests and explanaition for non-whole numbers.
I know most people use 2 as their fail point but if you put 2.1 under your conditions this would be a prime number when it is c;early not.
test output doesn't show values that are tested.
Added test
This comment is hidden because it contains spoiler information about the solution
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.
Some solutions posted but other are incorrect, but they were able to pass the test.
Please excuse my initial reaction to reading the problem. You are correct that it is easy to be negative and not easy to provide more constructive feedback.
There are plenty of ways to state the prime number problem. You need to describe the type of input that you will be providing in your test case.
"Write a function that returns a boolean value representing whether or not a given integer is prime. A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself.
For example:
PrimeTest(1); //false
PrimeTest(13); //true
PrimeTest(-5); //false
"
Stating "given integer" says that the input will be an integer, but nothing further. Also, devided should be divided.
Get unresponsive scrpt error multiple times. Have to stop script and reload page.
Loading more items...