OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000 (n = 1..2000 from Robert Israel)
EXAMPLE
a(3)=1451 is in the sequence because 1451, 1453, 1459, 1471 are consecutive primes and 1451+2*1453=4357, 1451+2*1453+4*1459=10193, and 1451+2*1453+4*1459+8*1471=21961 are all prime.
MAPLE
N:= 60000: # to get terms in the first N primes
P:= [seq(ithprime(i), i=1..N+3)]:
P[select(i -> isprime(P[i]+2*P[i+1]) and isprime(P[i]+2*P[i+1]+4*P[i+2]) and isprime(P[i]+2*P[i+1]+4*P[i+2]+8*P[i+3]) , [$1..N])];
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Aug 19 2020
STATUS
approved