OFFSET
1,1
COMMENTS
The first run of four consecutive terms that differ by two, starts at k = 326.
The first run of five consecutive terms that differ by two, starts at k = 1195374. - Daniel Suteu, Aug 17 2019
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
For k=2, the sum of the first two primes 2+3 = 5 is prime. Additionally, the sum of the first k + 2=4 primes 2+3+5+7 = 17 is prime. So 2 is a term.
For k=6, the sum of the first six primes 2+3+5+7+11+13 = 41 is prime. But, the sum of the first k+2=8 primes 2+3+5+7+11+13+17+19 = 77 is not a prime. So 6 is not a term.
MAPLE
P:= [seq(ithprime(i), i=1..10002)]:
S:= ListTools:-PartialSums(P):
select(k -> isprime(S[k]) and isprime(S[k+2]), 2*[$1..5000]); # Robert Israel, Sep 01 2019
PROG
(PARI) isspp(n) = isprime(sum(i=1, n, prime(i))); \\ A013916
isok(n) = isspp(n) && isspp(n+2); \\ Michel Marcus, Aug 14 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Philip Mizzi, Aug 13 2019
EXTENSIONS
More terms from Michel Marcus, Aug 14 2019
STATUS
approved