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.
Don't worry. I hope you try this kata again then, now that you see how it should work.
Ah, that makes much more sense. Apologies for my ignorance.
Already discussed below, but between 101 and 107 there is another prime: 103. So no gap of 6 there.
Not sure if the tests have been changed at some point, but how can the following test work properly?
Test.assert_equals(gap(6,100,110), None)
101 and 107 are prime numbers between 100 and 110 with a gap of 6.
It worked for me and other 885 warriors. Maybe your code is the problem? It could be not fast enough.
Python version has several fatal errors in test cases preventing correct code from working. Skip this.