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.
only extra code
Thank's. But no cool - only LINQ and not most popular string constructor.
Thanks for your feeling
Thanks for the tip!
Test cases are wrong. The test case incorrect:
Assert.AreEqual(new long[] {101, 103}, GapInPrimes.Gap(2,100,110));
It should return: new long[] { 101, 103, 107, 109 } - see https://en.wikipedia.org/wiki/List_of_prime_numbers#The_first_1000_prime_numbers
Another test case incorrect:
Assert.AreEqual(new long[] {359, 367}, GapInPrimes.Gap(8,300,400));
It should return: new long[] { 359, 367, 389, 397 }
One more problem in hidden case.