Quadratic Frobenius test
From Wikipedia, the free encyclopedia
The quadratic Frobenius test (QFT) is a probabilistic primality test to determine whether a number is a probable prime. It is named after Ferdinand Georg Frobenius. The test uses the concepts of quadratic polynomials and the Frobenius automorphism. It should not be confused with the more general Frobenius test using a quadratic polynomial – the QFT restricts the polynomials allowed based on the input, and also has other conditions that must be met. A composite passing this test is a Frobenius pseudoprime, but the converse is not necessarily true.
Concept
Algorithm
Let n be a positive integer such that n is odd, and let b and c be integers such that and , where denotes the Jacobi symbol. Set . Then a QFT on n with parameters (b, c) works as follows:
- (1) Test whether any of the primes less than or equal to divides n. If yes, then stop: n is composite.
- (2) Test whether . If yes, then stop: n is composite.
- (3) Compute . If , then stop: n is composite.
- (4) Compute . If , then stop: n is composite.
- (5) Let with s odd. If , and for all , then stop: n is composite.
If the QFT does not stop in steps (1)–(5), then n is a probable prime.
(The notation means that , where H and K are polynomials.)