Palindromic prime by Dingledooper

x=2
while x<2e4:
 if`x`[::-1]==~-2**x%x*`x`:print x
 x+=1

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

download

return to the top page