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.

A360312 The dividing prime prime(n+k+1) in A360297.

This page as a plain text file.
%I A360312 #11 Feb 07 2023 06:02:26
%S A360312 5,13,31,53,131,103,149,283,14081,883,313,2281229,1429,79,109
%N A360312 The dividing prime prime(n+k+1) in A360297.
%C A360312 See A360297 for further details.
%o A360312 (Python)
%o A360312 from sympy import prime, nextprime
%o A360312 def A360312(n):
%o A360312     p = prime(n)
%o A360312     q = nextprime(p)
%o A360312     s, k = p+q, 1
%o A360312     while s%(q:=nextprime(q)):
%o A360312         k += 1
%o A360312         s += q
%o A360312     return q # _Chai Wah Wu_, Feb 06 2023
%Y A360312 Cf. A360297, A360311, A000040, A007504, A332542, A332580.
%K A360312 nonn,more
%O A360312 1,1
%A A360312 _Scott R. Shannon_, Feb 03 2023