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