Prime numbers

A prime number is an integer greater than 1 whose only positive divisors are 1 and itself. Primes are the multiplicative building blocks of the positive integers: every integer greater than 1 has a unique factorization into primes, apart from the order of the factors. Studied since antiquity, primes are infinite in number and follow a large-scale distribution described by the prime number theorem. They also play a role in some public-key cryptographic systems, including RSA.

Last updated
13 October 2026
Confidence
High (97%)
Sources
6
Versions
1
This article was researched and drafted with AI assistance and checked by an automated review pass. It is not guaranteed to be accurate — verify important facts against the references below.

Definition and factorization

A prime is a positive integer greater than 1 divisible without remainder only by 1 and itself. Thus 2, 3, 5 and 7 are prime, while 1 is neither prime nor composite. The number 2 is the only even prime; every other even integer greater than 2 has 2 as a proper divisor. Integers greater than 1 that are not prime are composite. The fundamental theorem of arithmetic says that each such integer can be written as a product of primes in one unique way, apart from rearranging the factors. For example, 84 = 2 × 2 × 3 × 7.

Euclid's proof that primes never end

Euclid's Elements, written in ancient Greece, includes an argument that no finite list can contain every prime. In a modern version of the proof, suppose a list contains primes p₁ through pₙ. Multiply them together and add 1. The resulting number leaves remainder 1 when divided by any prime on the list. It is either prime itself or has a prime divisor absent from the list. Either possibility contradicts the claim that the list contained them all, so there must be infinitely many primes.

Patterns in their distribution

The gaps between successive primes do not follow a simple repeating pattern, but the overall density of primes can be estimated. If π(x) denotes the number of primes no greater than x, the prime number theorem states that, for large x, π(x) is approximately x divided by the natural logarithm of x. The estimate describes the long-run distribution; it does not specify where any particular next prime will occur. The theorem was proved independently by Jacques Hadamard and Charles de la Vallée Poussin in 1896.

Uses in cryptography

Prime numbers are important in number theory and have practical uses in computing. RSA, for example, is an integer-factorization cryptographic system: its key-generation procedures involve prime factors, and standards for RSA key establishment are set out by the U.S. National Institute of Standards and Technology. This is one application of primes rather than a property of every encryption method; cryptographic security depends on the complete scheme, its parameters and its implementation.

Key facts

Definition
An integer greater than 1 with exactly two positive divisors: 1 and itself.
Smallest prime
2, the only even prime.
Fundamental theorem of arithmetic
Every integer greater than 1 has a unique prime factorization, apart from the order of factors.
Infinitude
There is no largest prime; Euclid's Elements gives an ancient proof that infinitely many exist.
Prime number theorem
For large x, the count of primes at most x is approximately x/ln(x).

Ask about this article

Answers use only “Prime numbers” and its references, with citations.

References

  1. 1.
    prime

    Encyclopaedia Britannica · other · reliability: high · retrieved 13 October 2026

    Supports: Definition, unique factorization, history of prime study, Euclid's proof, and the role of large primes in cryptography.

  2. 2.
    Prime Number

    Wolfram MathWorld · other · reliability: high · retrieved 13 October 2026

    Supports: Definition of a prime, why 1 is excluded, and why 2 is the only even prime.

  3. 3.
    Fundamental Theorem of Arithmetic

    Wolfram MathWorld · other · reliability: high · retrieved 13 October 2026

    Supports: Unique prime factorization of every positive integer other than 1, up to rearrangement.

  4. 4.
    Primes: 3. Distribution of the primes

    American Mathematical Society · other · reliability: high · retrieved 13 October 2026

    Supports: Prime-counting function, prime number theorem approximation, and its interpretation as a large-scale estimate.

  5. 5.
    Euclid's Elements, Book IX, Proposition 20

    David E. Joyce, Clark University · other · reliability: high · retrieved 13 October 2026

    Supports: Text and explanation of Euclid's proof that there are more primes than any assigned finite multitude.

  6. 6.
    Recommendation for Pair-Wise Key Establishment Using Integer Factorization Cryptography (NIST SP 800-56B Rev. 2)

    National Institute of Standards and Technology · other · reliability: high · retrieved 13 October 2026

    Supports: NIST's standard covers key-establishment schemes using integer-factorization cryptography, including RSA.

References are suggested by the research engine and may be incomplete. Unverified URLs are omitted rather than guessed.

Article history

  1. Version 113 October 2026 · EditorCreated by Zapia