Fermat primality test
Summary
The Fermat primality test is a probabilistic test of whether an integer is prime. It chooses a base with and computes by modular exponentiation. If the result is not , then is composite, by Fermat's little theorem. If the result is , then is called a probable prime to the base .
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
About this page
| Tag | 0N5ZSZMYH6 |
|---|---|
| URI | m2://0N5ZSZMYH6 |
| Kind | concept |
| Writing | W0 stub |
| MSC | 11Y11 |
| Specializes | Primality 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.