in reply to sieve of erothenes
##########@_=(1); L:for(2..100) { $i=@_; while(--$i){next L unless $_ % $_[$i] } push @_,$_ } print join(" ",@_),"\n";
sub Adam () { @_=(1);L:for(2..100){$i=@_;while(--$i){next L unless $_%$_[$i]}push +@_,$_} @_ } sub Maverick () { for(1..100){push @_,$_;for(@_[1..($#_-1)]){pop @_ and last unless $_ +[-1]%$_}} @_ }
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: RE: sieve of erothenes
by maverick (Curate) on Jul 01, 2000 at 03:24 UTC | |
by Adam (Vicar) on Jul 01, 2000 at 03:52 UTC | |
by maverick (Curate) on Jul 01, 2000 at 08:44 UTC | |
by husker (Chaplain) on Jul 05, 2000 at 18:05 UTC | |
by Adam (Vicar) on Jul 01, 2000 at 22:12 UTC |