Palindromic prime by msk

p 2
$$.times{|i|p i if(s=i.to_s).reverse==s&&1==2**(i-1)%i}

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

download

return to the top page