Palindromic prime by xulapp

for(int i=1,j;++i<2e4;){for(j=i==(int)reverse((string)i)?1:0;0<i%++j;);if(j==i)write(i);}

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

download

return to the top page