Palindromic prime by tanakh

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

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

download

return to the top page