OFFSET
1,2
LINKS
James C. McMahon, Table of n, a(n) for n = 1..1000
EXAMPLE
11 is the fifth prime. The sum of the five primes beginning with 11 is 11 + 13 + 17 + 19 + 23 = 83, which is prime; therefore, 5 is a term.
3 is the second prime. The sum of the two primes beginning with 3 is 3 + 5 = 8, which is not prime; therefore, 2 is not a term.
MATHEMATICA
q[k_]:=PrimeQ[Sum[Prime[i], {i, k, k+k-1}]]; Select[Range[750], q]
PROG
(PARI) isok(k) = my(v2 = primes(2*k-1), v1 = Vec(v2, k-1)); if (k==1, v1=[]); isprime(vecsum(v2)-vecsum(v1)); \\ Michel Marcus, Jun 19 2026
CROSSREFS
KEYWORD
nonn
AUTHOR
James C. McMahon and Vincenzo Manto, Jun 17 2026
STATUS
approved
