OFFSET
1,1
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..250
EXAMPLE
a(3) = 8369989 is a term because it is prime, the next prime is 8370049,
8369989+8370049^2 = 70057728632390, 8369989^2+8370049 = 70056724230170, and 7005772863239 and 7005672423017 are prime.
MAPLE
R:= NULL: count:= 0:
q:= 2:
while count < 30 do
p:= q; q:= nextprime(p);
w:= p+q^2;
m:= padic:-ordp(w, 2);
if padic:-ordp(w, 5) <> m then next fi;
if m > 0 then w:= w/10^m fi;
if not isprime(w) then next fi;
v:= p^2+q;
m:= padic:-ordp(v, 2);
if padic:-ordp(v, 5) <> m then next fi;
if m > 0 then v:= v/10^m fi;
if isprime(v) then count:= count+1; R:= R, p; fi
od:
R;
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Apr 05 2022
STATUS
approved