Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Algorithm

Lucas primality test

Numerical Algorithm

The Lucas primality test is a method in computational number theory for proving that a natural number n is prime, provided the prime factors of n minus one are already known. The test searches for an integer a between 1 and n such that a raised to the power n minus one is congruent to one modulo n, while a raised to the power of n minus one divided by q is not congruent to one for every prime factor q of n minus one. If such an a exists, n is prime, because a then has multiplicative order n minus one in the group of integers modulo n. If no such a exists, n is either one, two or composite. A failure of the first condition gives a Fermat witness for compositeness. The test underlies the Pratt certificate, a concise proof that a number is prime, and it is named for the nineteenth century mathematician Edouard Lucas. The Pocklington primality test improves on it by needing only a partial factorization of n minus one.

Connections

Credited To

Source Lucas primality test (Wikipedia)

In Field

Source Lucas primality test (Wikipedia)

Invented By

Source Edouard Lucas (MacTutor)
Sources
Lucas primality test (Wikipedia)
  • In Group: Number Theory and Primality, Lead
    the Lucas test is a primality test for a natural number n
  • In Field: Algorithms and Complexity Theory, Lead
    the Lucas test is a primality test for a natural number n
  • Credited To: Edouard Lucas, See also
    Édouard Lucas, for whom this test is named
View the Source
Edouard Lucas (MacTutor)
Invented By: Edouard Lucas, Biography
Quote, Invented By: Edouard Lucas, Biography
Lucas also devised methods of testing primality, essentially those used today.
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.