OFFSET
1,1
COMMENTS
a(10) > 4*10^13. The prime 482564152712479922509389813571 is also a term. - Giovanni Resta, May 24 2018
EXAMPLE
381289 is a term because nextprime(381289) = 381301 is a substring of 381289^2 = 145381301521.
MATHEMATICA
Select[Prime@Range[1000000],
StringContainsQ[ToString[#^2], ToString[NextPrime[#]]] &] (* Robert Price, Oct 12 2019 *)
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Patrick De Geest, Jan 15 2000
EXTENSIONS
a(8) from Sam Handler (sam_5_5_5_0(AT)yahoo.com), Sep 04 2006
a(9) from Giovanni Resta, May 24 2018
STATUS
approved