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 doubt that you are still facing the issue. I came to an understanding that kata needs a specific way to pass all tests. A simple prime generator wont cut it.
You need a class and to use the stream()
OH! Thank you, but do you know why it wasnt returning values that should have been there? Or even allowing me to input an index higher than the length of the list of numbers?
What you wrote there in your code is not 16M, it's 1.6M. Re-check how many zeros you put there.
I am doing the python translation. I wrote an efficient enough implementation of an Eratosthenes Sieve that runs in the allocated time and finishes before the time out at 12000ms (usually around 8500ms). An unusual error that I believe is on codewars' side has arisen and it doesn't make much sense to me. When testing for primes over a certian number (I think it is in the 14M - 15M range), it returns nothing (like literally nothing - just []). If I try debugging using list slicing to isolate that portion of the list, it allows me to so with no errors, yet returns an empty list: []. There are no try/except statements in my code hindering this error detection, before anyone asks. When I run my program in PyCharm it returns a list perfectly filled with primes up to 16M in no more than 3000ms, with no full-empty lists like on here. Does anyone know whats going on?
"Why yes I do enjoy OOP, how did you know?"
Just tell me
Why?
loll
Issue below not fixed: it's your job of kata's author to find a way to generate a a certain amount of tests expecting one solution among the random tests. It's not that hard. And it's mandatory: Random tests must test all the possible answers when there is a very limited number like there. See: https://docs.codewars.com/authoring/guidelines/submission-tests
I adressed that in the description. All of the fixed tests have one solution. Any random quadratic has a low probability of having 1 solution, since the vertex has to be touching the x-axis.
Random tests have a very low probability to generate equations with one solution.
BASED SOLUTION
Why was this kata retired? I searched for a little while and couldn't find any like it.
First 3kyu in the books!
Oops, i forgot to import that to the test cases...
Loading more items...