OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 101 is a term because 101 and 103 are primes and (101^2 + 103^2)/10 = 2081 is prime.
MAPLE
P:= select(isprime, {seq(i, i=3..10^5, 2)}):
T:=P intersect map(`-`, P, 2):
filter:= proc(t) local s; s:= (t^2 + (t+2)^2)/10; s::integer and isprime(s) end proc:
sort(convert(select(filter, T), list));
MATHEMATICA
Select[Prime[Range[2000]], And @@ PrimeQ[{# + 2, (#^2 + (# + 2)^2)/10}] &] (* Amiram Eldar, Aug 01 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Jul 31 2022
STATUS
approved