cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A360311 The sum of the primes prime(n) + prime(n+1) + ... + prime(n+k) in A360297.

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