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.

A340712 Primes p such that p divides (2 + product of primes < p).

This page as a plain text file.
%I A340712 #10 Mar 24 2021 15:51:53
%S A340712 557,248137,4085791,519807973
%N A340712 Primes p such that p divides (2 + product of primes < p).
%H A340712 Norman Luhn, <a href="https://primes.utm.edu/curios/page.php?curio_id=2284">Prime Curios! 557</a>
%e A340712 557 is in the sequence because 2 + A034386(557 - 1) = 557 * 4627335992...5904782776 (220 digits).
%o A340712 (Python)
%o A340712 from sympy import nextprime
%o A340712 def aupto(limit):
%o A340712   p, psharp = 3, 2
%o A340712   while p <= limit:
%o A340712     if (psharp+2)%p == 0: print(p, end=", ")
%o A340712     psharp, p = psharp*p, nextprime(p)
%o A340712 aupto(500000) # _Michael S. Branicky_, Mar 24 2021
%Y A340712 Cf. A338543, A062347, A034386.
%K A340712 nonn,hard,more
%O A340712 1,1
%A A340712 _Martin Ehrenstein_, Jan 16 2021