Lucky numbers by not

s[9999];main(a,b,c){for(;a-b;a+=2)for(s[a]||printf("%d ",a,b=c=1);a>1&b<1e4;s[b+=2]+=s[b]||++c%a<1);}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page