Exercise · ZW-FERMAT-PRIMALITY-TEST-003 · ★☆☆ Basic
What is the name of the test that uses \( a^{n-1} \equiv 1 \pmod{n} \) to detect composites?
Choose one option.
Show answer
- C. Fermat primality test
Exercise · ZW-FERMAT-PRIMALITY-TEST-003 · ★☆☆ Basic
Choose one option.
It is the Fermat primality test, which is directly based on the congruence from Fermat's little theorem.
The Fermat primality test is a probabilistic criterion for an integer \(n>1\): it declares \(n\) composite if, for some base \(a\) coprime to \(n\), the power \(a^{n-1}\) is not congruent to 1 modulo \(n\).
← ZW-FERMAT-PRIMALITY-TEST-002 ZW-FERMAT-PRIMALITY-TEST-004 →