Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #12 Feb 07 2023 06:02:31
%S 5,26,124,318,1703,1133,2086,7641,10912775,60927,8764,184252585101,
%T 144329,474,1090
%N The sum of the primes prime(n) + prime(n+1) + ... + prime(n+k) in A360297.
%C See A360297 for further details.
%o (Python)
%o from sympy import prime, nextprime
%o def A360311(n):
%o p = prime(n)
%o q = nextprime(p)
%o s, k = p+q, 1
%o while s%(q:=nextprime(q)):
%o k += 1
%o s += q
%o return s # _Chai Wah Wu_, Feb 06 2023
%Y Cf. A360297, A360312, A000040, A007504, A332542, A332580.
%K nonn,more
%O 1,1
%A _Scott R. Shannon_, Feb 03 2023