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
In reply to Re^2: The Sieve
by hdb
in thread Not a Sieve
by Schmunzie
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |