Palindromic prime by xulapp

i=2
while i<2e4:
\x09if`i*pow(311,i-1,i)`==`i`[::-1]:print i
\x09i+=1

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

download

return to the top page