login
A360311
The sum of the primes prime(n) + prime(n+1) + ... + prime(n+k) in A360297.
3
5, 26, 124, 318, 1703, 1133, 2086, 7641, 10912775, 60927, 8764, 184252585101, 144329, 474, 1090
OFFSET
1,1
COMMENTS
See A360297 for further details.
PROG
(Python)
from sympy import prime, nextprime
def A360311(n):
p = prime(n)
q = nextprime(p)
s, k = p+q, 1
while s%(q:=nextprime(q)):
k += 1
s += q
return s # Chai Wah Wu, Feb 06 2023
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Scott R. Shannon, Feb 03 2023
STATUS
approved