Skip to main content

Primality Testing

  • Chapter
  • First Online:
  • 2643 Accesses

Abstract

A prime number is a whole number (an integer) with the property that its only divisors are 1 and itself. By custom we do not consider 1 to be a prime.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD   64.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

Learn about institutional subscriptions

Notes

  1. 1.

    More precisely, we need to divide by \(2, 3, 4,\ldots,\lfloor \sqrt{n}\rfloor \), where ⌊x⌋ denotes the floor function (also called the greatest integer function) equal to the largest integer less than or equal to x. We prefer to keep the notation cleaner by suppressing the floor function.

  2. 2.

    The mass of the sun is about 1. 99 × 1030 kilograms. The mass of a proton or neutron is about 1. 67 × 10−27 kilograms. Thus there are about 1. 2 × 1057 protons and neutrons in the sun.

  3. 3.

    In fact the Riemann hypothesis, first formulated by B. Riemann in 1859, is probably the most important unsolved problem in pure (abstract) mathematics. In its simplest form, the Riemann hypothesis (affectionately known to experts as RH) asserts that the prime numbers are randomly distributed. The more technical forms of the hypothesis are very concrete and technical estimates about the distribution of primes.

References and Further Reading

  1. Agrawal, M., Kayal, N., Saxena, N.: PRIMES is in P. Annals of Mathematics 160, 781–793 (2004)

    Article  MATH  MathSciNet  Google Scholar 

  2. Bornemann, F.: PRIMES is in P: a breakthrough for everyman. Notices of the American Mathematical Society, vol. 50, pp. 545–552. (2003)

    MATH  MathSciNet  Google Scholar 

  3. Carmichael, R.D.: On composite numbers p which satisfy the Fermat congruence a p−1 ≡ 1 m o dp. American Mathematical Monthly 19, 22–27 (1912)

    Google Scholar 

  4. Lenstra, Jr. H.W., Pomerance, C.: Primality testing with Gaussian periods. www.math.dartmouth.edu/~carlp/PDF/complexity12.pdf. Accessed July (2005)

  5. Miller, G.L.: Riemann’s hypothesis and a test for primality. Journal of Computer and System Sciences 13, 300–317 (1976)

    Article  MATH  MathSciNet  Google Scholar 

  6. Rabin, M.O.: Probabilistic algorithm for testing primality. Journal of Number Theory 12, 128–138 (1980)

    Article  MATH  MathSciNet  Google Scholar 

  7. Solovay, R.M., Strassen, V.: A fast Monte-Carlo test for primality. SIAM Journal on Computing 6, 84–85 (1977)

    Article  MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Springer Science+Business Media New York

About this chapter

Cite this chapter

Krantz, S.G., Parks, H.R. (2014). Primality Testing. In: A Mathematical Odyssey. Springer, Boston, MA. https://doi.org/10.1007/978-1-4614-8939-9_11

Download citation

Publish with us

Policies and ethics