OFFSET
1,1
COMMENTS
There may be more than one such k: thus for a(17) = 293, k = 294, 300, and 306 all work.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(4)=31 is included because 31 is prime, the next prime after 31 is 37, and with k=36 we have 31+36=67 and 37+36=73 both prime.
MAPLE
P:= [seq(ithprime(i), i=2..1000)]:
R:= NULL:
for i from 1 to nops(P)-1 do
for k from ceil(P[i]/2) to floor(P[i+1]/2) do
if isprime(P[i]+2*k) and isprime(P[i+1]+2*k) then
R:= R, P[i]; break
fi
od;
od:
R;
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Oct 22 2020
STATUS
approved