OFFSET
1,1
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..645 (Primes p <= 10^7).
MATHEMATICA
Select[Prime@ Range@ 400, AllTrue[FromDigits /@ Rest@ Fold[Append[#1, Delete[Last[#1], 1 - 2 Boole[EvenQ@ #2]]] &, {#}, Range[Length@ # - 1]] &@ IntegerDigits[#], PrimeQ] &] (* Michael De Vlieger, Jan 20 2018 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Apr 21 2002
EXTENSIONS
Corrected and extended by Larry Reeves (larryr(AT)acm.org), Sep 24 2002
STATUS
approved