OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 17 is a term because 17 is a prime, the next four primes == 17 (mod 10) are 37, 47, 67 and 97 and 17+37+47+67+97 = 265 = 5*53 where 53 is prime.
MAPLE
filter:= proc(p) local q, s, k;
if not isprime(p) then return false fi;
s:= p; k:= 1;
for q from p+10 by 10 while k < 5 do
if isprime(q) then k:= k+1; s:= s+q; fi
od;
isprime(s/5)
end proc:
filter(5):= false:
select(filter, [seq(i, i=3..1000, 2)]);
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Aug 05 2022
STATUS
approved