class M{static void Main(){for(int i=3,j,k;i<1e6;System.Console.Write(j<2?i+"\n":""))for(j=++i,k=2;j%k>0||i/k%k>0?k*k++<i:(j/=k)>1;);}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page