Skip to main content

Miller–Rabin Probabilistic Primality Test

  • Reference work entry
Encyclopedia of Cryptography and Security
  • 508 Accesses

Synonyms

Miller-Rabin test

Related Concepts

Fermat Primality Test; Fermat’s Little Theorem; Modular Arithmetic; Primality Test; Prime Number

Definition

The Miller–Rabin probabilistic primality test is a probabilistic algorithm for testing whether a number is a prime number using modular exponentiation, Fermat’s little theorem, and the fact that the only square roots of 1 modulo a prime are ± 1.

Background

The Miller–Rabin test was described initially by Miller [2]. Rabin provided further analysis [3], hence the name.

Theory and Applications

One property of primes is that any number whose square is congruent to 1 modulo a prime p must itself be congruent to 1 or − 1. This is not true of composite numbers. If a number n is the product of k distinct odd prime powers, then there will be \({2}^{k}\) distinct “square roots” of 1 modulo n. For example, there are four square roots of 1 modulo 77. The roots must be either 1 or − 1 modulo 7, and either 1 or − 1 modulo 11, since 7 and 11 divide...

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 799.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 949.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Recommended Reading

  1. Cormen TH, Leiserson CE, Rivest RL, Stein C (2001) Introduction to algorithms. MIT Press, Cambridge

    MATH  Google Scholar 

  2. Miller GL (1976) Riemann’s hypothesis and tests for primality. J Comput Syst Sci 13:300–317

    MATH  Google Scholar 

  3. Rabin MO (1980) Probabilistic algorithm for testing primality. J Number Theory 12:128–138

    MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2011 Springer Science+Business Media, LLC

About this entry

Cite this entry

Liskov, M. (2011). Miller–Rabin Probabilistic Primality Test. In: van Tilborg, H.C.A., Jajodia, S. (eds) Encyclopedia of Cryptography and Security. Springer, Boston, MA. https://doi.org/10.1007/978-1-4419-5906-5_461

Download citation

Publish with us

Policies and ethics