in reply to Re: (Golf): Sieve of Eratosthenes
in thread (Golf): Sieve of Eratosthenes
But at 47 characters I think MeowChow still won't be beat:
sub sieve { sub p{$_[0],@_>1?p(grep$_%$_[0],@_):()}p 2..pop }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: (Golf): Sieve of Eratosthenes
by MeowChow (Vicar) on May 19, 2001 at 21:56 UTC | |
by chipmunk (Parson) on May 19, 2001 at 22:00 UTC | |
by tilly (Archbishop) on May 19, 2001 at 22:32 UTC | |
Re: Re: Re: (Golf): Sieve of Eratosthenes
by MeowChow (Vicar) on May 20, 2001 at 02:21 UTC |