Palindromic prime by tanakh

main=mapM print[i|i<-[2..20000],show i==reverse(show i),all((>0).mod i)[2..i-1]]

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

download

return to the top page