MathLabs

Open problem, Arithmetic and number theory, posed 1640

Finiteness of Fermat primes

Open

It is conjectured that only finitely many Fermat numbers Fn=22n+1F_n = 2^{2^n}+1 are prime — in fact that the five known Fermat primes F0=3F_0=3, F1=5F_1=5, F2=17F_2=17, F3=257F_3=257, F4=65537F_4=65537 are the only ones — even though Fermat himself originally believed every FnF_n is prime.

Research frontier as of 2026

As of 2026, F5F_5 through F32F_{32} have all been proven composite (via Pépin's test or an explicit factor), and no Fermat prime beyond F4F_4 has ever been found despite extensive distributed searches. A standard heuristic — treating FnF_n as 'prime' with probability comparable to a random number of the same size — predicts the expected number of further Fermat primes beyond F4F_4 is about 3×10−103\times 10^{-10}, essentially zero, but this is not a proof that none exists.

Best known results

  • FnF_n is proven composite for every 5≤n≤325 \le n \le 32; complete prime factorizations are known only for n≤11n \le 11.
  • Heuristic expected count of Fermat primes beyond F4F_4 is roughly 3×10−103\times 10^{-10}, based on treating primality as independent random events with probability ≈1/ln⁡Fn\approx 1/\ln F_n.

Tools and where they stop

ToolAchievedWhere it stops
Pépin's testGives a fast, deterministic compositeness/primality decision for any single specified Fermat number, however large.It only ever settles individual, finitely many candidates; it cannot rule out a prime appearing arbitrarily far out among untested indices.
Distributed factor search (PrimeGrid, Proth Search)Finds explicit prime factors of enormous composite Fermat numbers, including some with index in the millions, confirming they are composite without a full factorization.Finding no factor for a given FnF_n up to some search depth neither proves it prime nor composite, and factor searches cannot cover the infinitude of untested indices.

Open questions

  • Is there a proof, even conditional, that only finitely many Fermat primes exist?
  • Is F33F_{33}, the smallest Fermat number of unresolved status as of 2026, prime or composite?

References

  1. Michal Křížek, Florian Luca, Lawrence Somer (2001). 17 Lectures on Fermat Numbers: From Number Theory to Geometry
  2. Wilfrid Keller (2024). Fermat factoring status