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


in reply to Re^2: The Sieve
in thread Not a Sieve

D’oh! Don’t know how I missed that. This one (77 characters) does print 2:

for($i=2;@p<50;++$i){($x=!($i%$_))&&goto _ for@p;push@p,$i;_:print"$i, +"x!$x}

Cheers,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,