Library Web

How does the Miller-Rabin primality test work?

The Miller-Rabin primality test is a fast probabilistic algorithm used to determine if a number is likely to be prime. Unlike tests that directly prove a number is prime, the Miller-Rabin test proves that a number is composite, making it a compositeness test in practice. It was originally developed by Gary L. Miller as a deterministic test relying on the extended Riemann hypothesis, and later modified by Michael O. Rabin into an unconditional probabilistic algorithm.

What we know

Where to go next

Sources