|
|
|
|
#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
|
|
|
|
#15 by Michel Marcus at Sun Jun 12 05:13:39 EDT 2022
|
|
|
|
#14 by Michael S. Branicky at Sun Jun 12 05:01:46 EDT 2022
|
|
|
|
#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
|
|
|
|
#11 by Michel Marcus at Sat Jun 11 04:22:10 EDT 2022
|
|
|
|
#10 by Amiram Eldar at Sat Jun 11 03:21:32 EDT 2022
|
|
|
|
#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
|
|
|
|