in reply to Re: Sieve of Eratosthenes Golf?
in thread Sieve of Eratosthenes Golf?
Anyway, here's a basic enhancement, and I also trimmed two characters with s/100/99/ (hey, we all know 100 is not prime, right? O:-) )
| for(2..99){$n{$y=$_}&&next;$n{$y+=$_}=1 while($_+$y)<=99;$n{$_}||print |
I'm now at 71 chars.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Sieve of Eratosthenes Golf?
by dragonchild (Archbishop) on Apr 07, 2005 at 13:24 UTC |