Your solution would work for the kata: http://www.codewars.com/kata/steps-in-primes/java but here you have to keep in mind that if there is another prime inside the gap, then the result is not valid and you have to look further.
Lots of Codewarriors passed the Java kata. As usual I tried my solution and a few others without any problem! The fixed tests and the random tests are built exactly the same way with Arrays.toString... Did you think to return null when necessary? I find that you are very unlucky with my katas:-(
The 3 backticks are "```" (google "markdown" if you don't know). On a newline put the 3 backticks, then a newline, then your text, then a newline, then once more the 3 backticks and a newline... I ask you for that because it could be a problem with white spaces and in normal text they can't be well seen. Put completely, for only this test 21, what you got in the CW console.
I didn't remember about what I saw you:-(
I'm very sorry but all the tests have the same format as said in the description:
"[[x1, y1], [x2, y2] ....]"
left bracket left bracket number comma white-space number right bracket comma white space left bracket and so on...
Test 21 has exactly the same format as the other ones.
Could you give between three backticks what you get when a test fail? (only one example!)
Hey BobBash
Your solution would work for the kata: http://www.codewars.com/kata/steps-in-primes/java but here you have to keep in mind that if there is another prime inside the gap, then the result is not valid and you have to look further.
Hopefully this helps you out a bit.
Cheers
Don't take the habit of putting an issue before knowing it's a problem of your code or of the kata:-)
Tell me when you succeed!
Thanks for your time! The test 21 is:
Maybe you can post your solution (mark it as Spoiler!). I will try it.
Lots of Codewarriors passed the Java kata. As usual I tried my solution and a few others without any problem! The fixed tests and the random tests are built exactly the same way with Arrays.toString... Did you think to return null when necessary? I find that you are very unlucky with my katas:-(
The 3 backticks are "```" (google "markdown" if you don't know). On a newline put the 3 backticks, then a newline, then your text, then a newline, then once more the 3 backticks and a newline... I ask you for that because it could be a problem with white spaces and in normal text they can't be well seen. Put completely, for only this test 21, what you got in the CW console.
I didn't remember about what I saw you:-(
I'm very sorry but all the tests have the same format as said in the description:
left bracket left bracket number comma white-space number right bracket comma white space left bracket and so on...
Test 21 has exactly the same format as the other ones.
Could you give between three backticks what you get when a test fail? (only one example!)