"Fermat Primes are prime numbers of the form
, where n is a non-negative integer and are named after the French Mathematician Pierre de Fermat who studied numbers of this form.

If 2n + 1 is a prime, then n is a power of 2
For 2n + 1 to be prime, then n must not contain an odd factor, or 2n + 1 would be a factorable number of the form:"
via mathsbyagirl