Palindromic prime by msk

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

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

download

return to the top page