Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Also not a sieve

by ambrus (Abbot)
on Mar 16, 2015 at 15:55 UTC ( [id://1120192]=note: print w/replies, xml ) Need Help??


in reply to Not a Sieve

See also prime factorization using base 1 which suggests

print"$_,"x(1x$_)!~/^(11+)\1+$/ for 2..232

Replies are listed 'Best First'.
Re^2: The Sieve
by hdb (Monsignor) on Mar 16, 2015 at 17:56 UTC

    Which is not a Sieve! But then the OP's proposal is neither...

    Update: this is a sieve (specify sieve size on command line):

    $_=";"x(pop);s;.;.;;$;=~s:.:.:g,s:($;).:$1.:g,s,($;).,$1:,while($;)=m: +(.+?);:;s;:;1+pos();ge;say
      It's not. Hm.. gotta write a real one now.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 12:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found