OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..13189 (a(n) for n = 1..1000 from Colin Barker).
MATHEMATICA
ppQ[n_]:=Module[{c=FromDigits[Rest[IntegerDigits[n]]]}, PrimeQ[c] && PalindromeQ[ c]]; Select[Prime[Range[1000]], ppQ] (* Harvey P. Dale, Aug 04 2018 *)
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) = m=n%10; n\=10; while(n>0, m=m*10+n%10; n\=10); m
L=List(); forprime(n=2, 100000, r=rotl(n)\10; if(isprime(r) && revint(r)==r, listput(L, n))); Vec(L)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Colin Barker, Apr 11 2017
STATUS
approved