Palindromic prime by nai

k,n,p;main(i){for(;p=++i<2e4;k%=i-p||printf("%d\n",i))for(n=i;n?k=k*10+n%10:k%++p;n/=10);}

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

download

return to the top page