Svoboda | Graniru | BBC Russia | Golosameriki | Facebook
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!)

Revision History for A129786

(Underlined text is an addition; strikethrough text is a deletion.)

Showing entries 1-10 | older changes
A129786 Least k such that 2^(2^n)+k is prime.
(history; published version)
#17 by Charles R Greathouse IV at Mon Apr 03 10:36:11 EDT 2023
LINKS

C. K. Caldwell, The Prime Glossary, <a href="httphttps://primes.utmt5k.eduorg/glossary/page.php?sort=Fermats">Fermat prime</a>.

Discussion
Mon Apr 03 10:36
OEIS Server: https://oeis.org/edit/global/2966
#16 by Joerg Arndt at Sun Jun 12 06:14:16 EDT 2022
STATUS

reviewed

approved

#15 by Michel Marcus at Sun Jun 12 05:13:39 EDT 2022
STATUS

proposed

reviewed

#14 by Michael S. Branicky at Sun Jun 12 05:01:46 EDT 2022
STATUS

editing

proposed

#13 by Michael S. Branicky at Sun Jun 12 05:01:44 EDT 2022
PROG

(Python)

from sympy import nextprime

def a(n): m = 2**(2**n); return nextprime(m-1) - m

print([a(n) for n in range(12)]) # Michael S. Branicky, Jun 12 2022

STATUS

approved

editing

#12 by Peter Luschny at Sat Jun 11 05:23:44 EDT 2022
STATUS

reviewed

approved

#11 by Michel Marcus at Sat Jun 11 04:22:10 EDT 2022
STATUS

proposed

reviewed

#10 by Amiram Eldar at Sat Jun 11 03:21:32 EDT 2022
STATUS

editing

proposed

#9 by Amiram Eldar at Sat Jun 11 03:02:24 EDT 2022
LINKS

C. K. Caldwell, The Prime Glossary, <a href="http://primes.utm.edu/glossary/page.php?sort=Fermats">Fermat prime</a>>.

Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/FermatNumber.html">Fermat Number</a>>.

Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/FermatPrime.html">Fermat Prime</a>>.

MATHEMATICA

a[n_] := Module[{k = 0}, While[! PrimeQ[2^(2^n) + k], k++]; k]; Array[a, 12, 0] (* Amiram Eldar, Jun 11 2022 *)

STATUS

approved

editing

#8 by Alois P. Heinz at Tue Nov 19 03:19:17 EST 2019
STATUS

reviewed

approved

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 August 21 12:48 EDT 2024. Contains 375353 sequences. (Running on oeis4.)