A052073 Primes p with the property that nextprime(p) is a substring of p^2.
23, 83, 113, 1123, 200003, 328127, 381289, 714597769, 4916552822383
Offset: 1
Examples
381289 is a term because nextprime(381289) = 381301 is a substring of 381289^2 = 145381301521.
Programs
-
Mathematica
Select[Prime@Range[1000000], StringContainsQ[ToString[#^2], ToString[NextPrime[#]]] &] (* Robert Price, Oct 12 2019 *)
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
Comments