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!)
A340712 Primes p such that p divides (2 + product of primes < p). 0

%I #10 Mar 24 2021 15:51:53

%S 557,248137,4085791,519807973

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

%H Norman Luhn, <a href="https://primes.utm.edu/curios/page.php?curio_id=2284">Prime Curios! 557</a>

%e 557 is in the sequence because 2 + A034386(557 - 1) = 557 * 4627335992...5904782776 (220 digits).

%o (Python)

%o from sympy import nextprime

%o def aupto(limit):

%o p, psharp = 3, 2

%o while p <= limit:

%o if (psharp+2)%p == 0: print(p, end=", ")

%o psharp, p = psharp*p, nextprime(p)

%o aupto(500000) # _Michael S. Branicky_, Mar 24 2021

%Y Cf. A338543, A062347, A034386.

%K nonn,hard,more

%O 1,1

%A _Martin Ehrenstein_, Jan 16 2021

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 23 22:36 EDT 2024. Contains 371917 sequences. (Running on oeis4.)