OFFSET
1,1
COMMENTS
Primes prime(k) such that when any trailing zeros are removed from A352851(k), the result is prime.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 701 is a term because it is prime, 709 is the next prime, and 701^2 + 709 = 492110 where 49211 is prime.
MAPLE
R:= NULL: count:= 0:
q:= 2:
while count < 100 do
p:= q; q:= nextprime(p);
v:= p^2+q;
if v mod 10 = 0 then v:= v/10^min(padic:-ordp(v, 2), padic:-ordp(v, 5)) fi;
if isprime(v) then count:= count+1; R:= R, p; fi;
od:
R;
MATHEMATICA
f[n_] := n/10^IntegerExponent[n, 10]; Select[Range[60000], PrimeQ[#] && PrimeQ[f[#^2 + NextPrime[#]]] &] (* Amiram Eldar, Apr 07 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Apr 05 2022
STATUS
approved