Math 2.0

Number theory Concept

Fermat primality test

Summary

The Fermat primality test is a probabilistic test of whether an integer n>1n > 1 is prime. It chooses a base aa with 1<a<n−11 < a < n - 1 and computes an−1 mod na^{n-1} \bmod n by modular exponentiation. If the result is not 11, then nn is composite, by Fermat's little theorem. If the result is 11, then nn is called a probable prime to the base aa.

Remarks

A probable prime can be composite. Such a number is a Fermat pseudoprime. The Carmichael numbers pass the test for each base coprime to them. So repeated tests with many bases cannot detect all composite numbers. The Miller–Rabin primality test is a stronger test of the same kind, without this weakness.

Further reading

  1. Web https://en.wikipedia.org/wiki/Fermat_primality_test, Concept
About this page
Tag0N5ZSZMYH6
URIm2://0N5ZSZMYH6
Kindconcept
WritingW0 stub
MSC11Y11
SpecializesPrimality test
Same as

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.