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.
wtf
What are the differences with part 1?
They should be mentioned in description, otherwise this kata is simply a duplicate.
Also performance tag can be added to suggest an optimized solution is required
Thanks a lot! Good stuff. Approved.
Perfect! Thanks a lot!
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?
Python Translation
Very nice problem! (Took me much longer than it should have. Tried to make streams work for a while. Eventually went back to basics, and kludged it together.)
After TOO MANY HOURS of trying I managed to get Yossarian (and myself) to turn Crazy :) One of the coolest Katas I have done.
The point is to convince Doc Daneeka that John Yossarian is crazy. That's the catch! "It's the best there is!" (Doc Daneeka)
Whats the point of this kata, there is not even a question made. Wtf?
Well, guess who just had to learn Java because there wasn't a C/C++ or Python version.
At least it's a nice way to get to
1kyu
, congrats to me!!Also, nice kata, I've been wanting to put my micro-optimized prime finding methods to the test for a while now, so this was great for that.
C translation
nah, a Captain sinks with his ship.
Loading more items...