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

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

by MeowChow (Vicar)
on May 20, 2001 at 02:21 UTC ( #81771=note: print w/replies, xml ) Need Help??


in reply to Re: Re: (Golf): Sieve of Eratosthenes
in thread (Golf): Sieve of Eratosthenes

Abusing the rules for fun and profit (46 chars):
sub sieve { sub p{$_[0],@_>1?p(grep$_%$_[0],@_):1}p 2..pop }
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://81771]
help
Chatterbox?
[LanX]: headshot ?
LanX s English not humorous enough
[choroba]: yes, headshot, in a game
[choroba]: the context is probably also important. They are students of a tech university

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2017-10-18 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (245 votes). Check out past polls.

    Notices?