Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: (tye)Re2: (Golf): Sieve of Eratosthenes

by MeowChow (Vicar)
on May 19, 2001 at 23:05 UTC ( #81754=note: print w/ replies, xml ) Need Help??


in reply to (tye)Re2: (Golf): Sieve of Eratosthenes
in thread (Golf): Sieve of Eratosthenes

53 characters:

sub sieve2 { grep{@_[map$a*$_,2..@_/($a=$_)]=0if$_[$_]>1}@_=0..pop }
All your t-shirts are belong to me! j/k :-)
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print


Comment on Re: (tye)Re2: (Golf): Sieve of Eratosthenes
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2016-02-06 04:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (215 votes), past polls