in reply to Sieve of Eratosthenes Golf?
It probably won't win the golf, but it will go a lot higher than most. It'll handle upto 1,000,000,000 if you have 1 GB of ram.
|
And this one will go eight times higher in the same space, and should be relatively quick.
|
You could double that by not storing the evens,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sieve of Eratosthenes Golf?
by Cody Pendant (Prior) on Apr 07, 2005 at 07:17 UTC | |
by BrowserUk (Patriarch) on Apr 07, 2005 at 07:52 UTC |