Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: (Golf): Sieve of Eratosthenes

by chipmunk (Parson)
on May 19, 2001 at 21:54 UTC ( #81740=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub sieve {
      sub p{$_[0],@_>1?p(grep$_%$_[0],@_):()}p 2..pop
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2018-09-18 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (162 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!