login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A360311 The sum of the primes prime(n) + prime(n+1) + ... + prime(n+k) in A360297. 3

%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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 18:58 EDT 2024. Contains 371781 sequences. (Running on oeis4.)