http://qs1969.pair.com?node_id=1120205


in reply to Also not a sieve
in thread Not a Sieve

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

Replies are listed 'Best First'.
You're right
by Schmunzie (Beadle) on Mar 17, 2015 at 03:37 UTC
    It's not. Hm.. gotta write a real one now.