# Fermat prime

This article defines a property that can be evaluated for a prime number. In other words, every prime number either satisfies this property or does not satisfy this property.
View other properties of prime numbers | View other properties of natural numbers

## Definition

A Fermat prime is a Fermat number that is also a prime number. In other words, it is a prime number of the form , where is a nonnegative integer.

It turns out that if is prime for a natural number, then for some nonnegative integer . Thus, a Fermat prime can also be defined as a prime of the form for some natural number .

## Occurrence

### Finitude conjecture

Further information: Finitude conjecture for Fermat primes

The only known Fermat primes are the Fermat primes for , namely, the primes . For all , either the Fermat prime is known to be composite or its primality is open. The prime number theorem suggests that there are likely to be only finitely many Fermat primes, and it is conjectured that there are no Fermat primes other than the five known ones.

The ID of the sequence in the Online Encyclopedia of Integer Sequences is A019434

## Testing

### Test for this property

The test used to determine whether a natural number has this property is: Pepin's test

Pepin's test is a deterministic primality test for Fermat numbers. It relies on Proth's theorem, and the observation that is a quadratic nonresidue for any Fermat prime greater than itself.
{"ft_lang_label":"__label__en","ft_lang_prob":0.8743867,"math_prob":0.9690747,"size":1728,"snap":"2022-40-2023-06","text_gpt3_token_len":378,"char_repetition_ratio":0.19431554,"word_repetition_ratio":0.013888889,"special_character_ratio":0.19155093,"punctuation_ratio":0.08116883,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.980633,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,10,null,null,null,null,null,null,null,8,null,8,null,8,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-09-25T09:29:15Z\",\"WARC-Record-ID\":\"<urn:uuid:bd5474e2-fea7-4160-91ff-611b8ccd7f41>\",\"Content-Length\":\"25281\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b81560b9-a5af-4f32-b689-d44b0a12a02a>\",\"WARC-Concurrent-To\":\"<urn:uuid:4a9be111-6c22-493b-bfc7-c59618913f1c>\",\"WARC-IP-Address\":\"96.126.114.7\",\"WARC-Target-URI\":\"https://number.subwiki.org/w/index.php?title=Fermat_prime&oldid=196\",\"WARC-Payload-Digest\":\"sha1:XWFRBRUE4WKKSR6YSPVWK7S7O3RIDQ3V\",\"WARC-Block-Digest\":\"sha1:ITSIYL7XE6A72LT6WLCJZK2ARHJJ6SQ5\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030334515.14_warc_CC-MAIN-20220925070216-20220925100216-00664.warc.gz\"}"}