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.
Explanations
L1 human
To test with , compute . The result is not , so is surely composite. The test does not find a factor; it only proves that one exists.
What this node 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 node is. They do not measure its truth.
Sources
What links here
No node links to this node yet.