OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
EXAMPLE
The prime 113 is in the sequence because 131 is a palindromic prime.
PROG
(PARI) rotl(a) = my(b, c, d); b=#Str(a); c=floor(a/(10^(b-1))); d=a-c*(10^(b-1)); 10*d+c
revint(n) = my(m=n%10); n\=10; while(n>0, m=m*10+n%10; n\=10); m
s=[]; forprime(n=2, 1000000, r=rotl(n); if(isprime(r) && revint(r)==r, s=concat(s, n))); s
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Colin Barker, Jan 02 2014
STATUS
approved