Quadratic Frobenius test

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.

Grantham's stated goal when developing the algorithm was to provide a test that primes would always pass and composites would pass with a probability of less than 1/7710.

[1]: 33 The test was later extended by Damgård and Frandsen to a test called extended quadratic Frobenius test (EQFT).

denotes the Jacobi symbol.

Then a QFT on n with parameters (b, c) works as follows: If the QFT does not stop in steps (1)–(5), then n is a probable prime.