[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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