OFFSET
1,1
COMMENTS
All terms are prime.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
A338270(3) = 79 with previous and next primes 73 and 83, so a(3) = 79 + (83+83)/2 = 157.
MAPLE
q:= 3: r:= 5:
count:= 0: R:= NULL:
while count < 100 do
p:= q; q:= r; r:= nextprime(r);
if isprime((p+2*q+r)/2) then count:=count+1; R:= R, p + (q+r)/2;
fi
od:
R;
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Oct 19 2020
STATUS
approved