OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
Dec61=prime -> Hex61=Dec97=prime -> Hex97=Dec151=prime -> Hex151=Dec337=prime -> Hex337=Dec823=prime.
MATHEMATICA
qhpQ[n_]:=AllTrue[Rest[NestList[FromDigits[IntegerDigits[#], 16]&, n, 4]], PrimeQ]; Select[Prime[Range[27000]], qhpQ] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Mar 13 2016 *)
PROG
(PARI) isok(p)= isprime(p) && isprime(p=hd(p)) && isprime(p=hd(p)) && isprime(p=hd(p)) && isprime(p=hd(p)); \\ Michel Marcus, Feb 09 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Andreas Boe, Feb 07 2014
EXTENSIONS
More terms from Michel Marcus, Feb 09 2014
STATUS
approved