Never give up on that last optimization!sub sieve3 { grep{@_[map$a*$_,2..@_/($a=$_)]=0if$_[$_]>1}@_=0..pop }
In reply to Re: (tye)Re3: (Golf): Sieve of Eratosthenes
by tilly
in thread (Golf): Sieve of Eratosthenes
by tilly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |