Skip to main content

Primality Testing: An Overview

  • Chapter
  • 2541 Accesses

Abstract

In the previous two chapters we have seen that there are infinitely many primes and showed that as we move through larger and larger integers the density of primes thins out. In particular, we proved that

$$ \frac{{\pi (x)}} {x} \sim \frac{1} {{1n x}}as x \to \infty , $$

where π(x) represents the number of primes less than the positive real number x. This result, the prime number theorem, could be interpreted as saying that the probability of randomly choosing a prime number less than or equal to a positive real number x is approximately 1/ln x as x gets large. In this chapter we consider the question of determining whether a particular given positive integer n is prime or not prime. The methods concerning this problem are called primality testing and consist of algorithms to determine whether an inputted positive integer is prime. Primality testing has become extremely important and has been of great interest in recent years due to its close ties to cryptography and especially public key cryptography. Cryptography is the science of encoding and decoding secret messages. Many of the most powerful and secure encoding methods depend on number theory, especially on the computational difficulty of factoring large integers. It turns out, somewhat surprisingly, that relative to ease of computation, determining whether a number is prime is easier than actually factoring it.

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   59.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2007 Birkhäuser Boston

About this chapter

Cite this chapter

(2007). Primality Testing: An Overview. In: Number Theory. Birkhäuser Boston. https://doi.org/10.1007/978-0-8176-4541-0_5

Download citation

Publish with us

Policies and ethics