OFFSET
1,1
LINKS
Attila Olah, Table of n, a(n) for n=1..10000
P. De Geest, Palindromic numbers beyond base 10
Attila Olah, Table of n, a(n) for n=1..10000 (written in hexadecimal)
MATHEMATICA
lst={}; Do[p=Prime[n]; If[IntegerDigits[p, 16]==Reverse[IntegerDigits[p, 16]], AppendTo[lst, p]], {n, 7!}]; lst (* Vladimir Joseph Stephan Orlovsky, Jul 31 2009 *)
PROG
(Python)
from itertools import chain
from sympy import isprime
from gmpy2 import digits
A029732 = sorted((n for n in chain((int(digits(x, 16)+digits(x, 16)[::-1], 16) for x in range(1, 16**5)), (int(digits(x, 16)+digits(x, 16)[-2::-1], 16) for x in range(1, 16**5))) if isprime(n)))
# Chai Wah Wu, Aug 16 2014
(PARI) forprime(p=2, 10^4, my(d=digits(p, 16)); if(d==Vecrev(d), print1(p, ", "))); \\ Joerg Arndt, Aug 17 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved