Fermat Prime definition
A Fermat prime is a prime number of the form 2 raised to 2 raised to n, plus 1, where n is a nonnegative integer.
Fermat Prime in a picture
How it works
Compute 2ⁿ first, then raise 2 to that result and add 1. This gives the Fermat number for n. When a Fermat number is prime, it is a Fermat prime. The first few examples are 3, 5, and 17.
Worked examples
Find the Fermat number for n = 0.
2⁰ = 1, and 2¹ + 1 = 3.
Find the Fermat number for n = 3.
2³ = 8, and 2⁸ + 1 = 257, which is prime.
Are all Fermat numbers prime?
No. The Fermat number 2³² + 1 is divisible by 641.
Common mistake
Evaluate the inner exponent first. The Fermat number for n = 3 uses exponent 8 on the outer 2.
Quick check
Is a Fermat number automatically prime?
Show answer
No. Check whether it has a nontrivial factor.
What is the inner power for n = 4?
Show answer
2⁴ = 16.
Sources
Flashcard
Fermat Prime
Reveal the definition
A Fermat prime is a prime number of the form 2 raised to 2 raised to n, plus 1, where n is a nonnegative integer.
Effortless Math. “Fermat Prime.” Math Dictionary.



