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 because there's very few tests in C version, so ANY solution will pass there.
That's funny because I'm writing the exact same code in C and it's fast af while it wasn't fast enough in Python.
This is really cool, thank you! Isn't this the actual circuit for a rippled binary adder? (Minus the if/else at the end)
B E S T P R A C T I C E S
BRUH
LOL, well done. I give up!
That's fairly likely lol, never kept a copy of the code that was timing out my apologies.
That's interesting, because it definitely should be enough for this kata, and I checked such solutions and they pass. Maybe your original solution had some other issue?
This comment is hidden because it contains spoiler information about the solution
You don't need to memoize. Solution with proper upper bound will work for this kata without memoization.
I misunderstood, thought a suggestion was for other people completing the kata not the creator.
not a suggestion...
To those writing in Python and running into server time out: it isn't python's fault!
HINT: Memoization - Don't recalculate any primes between each call to is_prime.