OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 79 is a term because the next two primes are 83 and 89, and 6*83-89 = 409, 6*83-79 = 419, 6*83+79 = 577 and 6*83+89 = 587 are all prime.
MAPLE
R:=NULL: count:= 0:
q:= 2: r:= 3:
while count < 100 do
p:= q; q:= r; r:= nextprime(r);
if andmap(isprime, [6*q+p, 6*q-p, 6*q+r, 6*q-r]) then
count:= count+1; R:= R, p;
fi
od:
R;
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Feb 15 2022
STATUS
approved