+ 3
Is it possible to improve the algorithm?
Tried to solve the problem of "Sieve of Eratosthenes" in a minimum of strings. The problem is that the maximum number entered is 258. How to increase the input? https://code.sololearn.com/cKbpz1DxsUkk/?ref=app
7 Answers
+ 9
That's a limitation of the Code Playground, your code is fine. Code is given a limited amount of time to execute. A more efficient application of this algorthm (if there is one) might be able to output more in time.
+ 3
Impressive! :-) I couldn't improve on your excellent work!
+ 3
Tamra Right, I misunderstood the question I think. They were concerned about the SL Playground timeout, not literally the efficiency of the algorithm?
+ 3
Anton_Time.deltaTime Great, understood. Like I said it looks good to me. In reality you could time different algorithms on different platforms / languages to get an idea.
+ 2
Hmm... I'm understood, thanks! =3
+ 2
Xan I guessed about the SL Playground timeout. =3
So I was concerned about the speed of the algorithm.
+ 2
Xan Thanks. It is good idea. =3