in reply to Sieve of Eratosthenes Golf?
| for(2..100){$n{$y=$_}&&next;$n{$y+=$_}=1 while($_+$y)<=100}for(2..100){$n{$_}||print} |
More^WLess to come, I hope.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sieve of Eratosthenes Golf?
by cog (Parson) on Apr 07, 2005 at 09:57 UTC | |
by dragonchild (Archbishop) on Apr 07, 2005 at 13:24 UTC |