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.
That's not how you count a gap, when there is a prime number it's over. You can't choose to ignore it.
And what about (101, 109)? We have 102, 104, 105, 106 and 108 between them which means a 6-gap. Why the right answer is None?
No problem, I don't know why I checked Python (I jump from language to language to solve some issues sometimes), good to know the number of tests is the same (that's not always the case).
Nevermind, there are also 510 tests in JavaScript. Optimized my solution for speed and saw it.
Thanks Diego! :)
Okay. I'm using JavaScript though, do you know how many there are for it?
I think in Python they're 510.
How many tests are there in this challenge?
I have 183 tests passing (varies for each run), none failing but, timing out. Would like to know how close I am; anyone know?
Freaking kidding me mahn! Darn! Thanks anyway, got it.
This isn't a kata issue, you misunderstood what to do, it's even explained in the instructions:
Lots of the tests in the JavaScript version are wrong, even in simple tests.
Console log output is in format:
m
,n
,g
-error message
100, 110, 6
-Expected: 'null', instead got: '[101, 107]'
300, 400, 10
-Expected: '[337, 347]', instead got: '[307, 317]'
30000, 100000, 8
-Expected: '[30161, 30169]', instead got: '[30089, 30097]'
Two basic tests and as many as 15 more in the advanced tests have this issue.
LOL!