in reply to Re: Re: (Golf): Sieve of Eratosthenes
in thread (Golf): Sieve of Eratosthenes
I had thought of that, but assumed it would slide :)
Make that 46 by the way...
sub sieve { sub p{$_[0],$#_?p(grep$_%$_[0],@_):()}p 2..pop }
MeowChow s aamecha.s a..a\u$&owag.print
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: (Golf): Sieve of Eratosthenes
by chipmunk (Parson) on May 19, 2001 at 22:00 UTC | |
by tilly (Archbishop) on May 19, 2001 at 22:32 UTC |
In Section
Meditations