Celeb Glow
news | April 05, 2026

Fermat numbers. Are they all prime?

$\begingroup$

It was once believed that all numbers of the form $$2^{2^n}+1$$ were prime until Euler disproved this by showing that $$2^{2^5}+1$$ is not prime. Is there a formula or a way to know which of the Fermat numbers are prime?.

$\endgroup$ 1

2 Answers

$\begingroup$

The only known Fermat primes so far are the cases $n = 0,1,2,3,4$. You can get some more information here.

$\endgroup$ 3 $\begingroup$

Something like a formula exists in Pepin's Test, whereby $F_n=2^{2^n}+1$ is prime iff $3^{2^{n-1}}\equiv -1\bmod F_n$. In principle, this is simple to implement as it involves just repeated squaring. But for Fermat numbers of current interest the numbers are so large that the computation becomes nontrivial.

$\endgroup$

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy