• ###### diarinccommented on "Reverse Int or String" kumite

That's awesome!

• ###### blinker345678commented on "Get all primes up to a given number" kumite

I came across this which inspired me to experiment with it.
https://www.kaggle.com/chefele/scripts-first-try

• ###### s123456789commented on "Get all primes up to a given number" kumite

Faster than my attemp, damn that's insane...

• ###### ozichukwucommented on "Get all primes up to a given number" kumite

also found that @FArekkusu's function returns primes < n. It would fail at n = 7, n = 17, etc.

• ###### ozichukwucommented on "Get all primes up to a given number" kumite

I just had a quick look and yeah, it's basically the same. Just that @FArekkusu used a more efficient approach (subscript assignment to the list `a` thereby replacing the `for` loop you used in yours) to implement it.

• ###### simon-tigercommented on "Get all primes up to a given number" kumite

Wait...that's just my starting algorithm!

• ###### ozichukwucommented on "Get all primes up to a given number" kumite

And here he comes to steal the show.. lol.
Nice work here. I'm trying to wrap around the algorithm. Kindly explain. Thanks!

• ###### simon-tigercommented on "Get all primes up to a given number" kumite

Ordered by speed:

1. Fork #4
2. Fork #3
3. Fork #1
4. Fork #2
So, yes, this one is the quickest.

[deleted]

[deleted]

• ###### OreOlad@commented on "Get all primes up to a given number" kumite

Yeah, this one's proably the est one so far. It's very concise and fast.

• ###### ozichukwucommented on "Get all primes up to a given number" kumite

You're welcome