A Fermat witness for an integer is a nonzero residue class represented by for which . It proves that is a composite number by Fermat's little theorem. Here the definition includes nonunits; some conventions restrict Fermat witnesses to bases coprime to . The Fermat primality test can first compute the greatest common divisor: if , it already has a proper factor. A zero residue class is excluded. [ref]
Fermat's Test by Keith Conrad. Keith Conrad, Fermat's Test, p. 2, Definition 2.4 and footnote 3 on the two witness conventions
Articles by others on the same topic
There are currently no matching articles.