Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

RE: RE: sieve of erothenes

by maverick (Curate)
on Jul 01, 2000 at 03:24 UTC ( #20694=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub A { @_=(1);L:for(2..100){$i=@_;while(--$i){next L if!($_%$_[$i])}p
    +ush@_,$_} }
    sub M { for(1..100){push@_,$_;for(@_[1..$#_-1]){pop@_ and last if!($_[
    +-1]%$_)}} }
    
    print join(" ",@_),"\n";
    
  2. or download this
    sub A { @_=(1);L:for(2..100){$i=@_;while(--$i){next L if!($_%$_[$i])}p
    +ush@_,$_} }
    sub M { for(1..100){push@_,$_;for(@_[1..$#_-1]){pop@_&&last if!($_[-1]
    +%$_)}} }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://20694]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2015-08-04 21:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (75 votes), past polls