Palindromic prime by not

a,b;main(c,d){for(;c<2e4;b=c%--a?b/10:(d%=a*c-d||printf("%d\n",c),a=++c))b?d=d*10+b%10:0;}

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

download

return to the top page