Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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?
[erix]: true of life in general
LanX yeah if God had used GIT fromn the beginning ...
[LanX]: I'm working with legacy code which was ... ehm .. hacked long before I arrived here ...
[LanX]: ... try to explain to a "senior" that code which is "working" should be altered
[LanX]: hmm looks like the EU needs to prepare for a trade war with former allies ...
[erix]: lets boycott english

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2017-01-16 14:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (151 votes). Check out past polls.