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

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

download

return top