Definition of Prime Numbers
Prime numbers are the fundamental building blocks of arithmetic.
A positive integer is called prime if its only positive divisors are
Thus a prime number cannot be factored into smaller positive integers.
For example,
are prime numbers.
The integer is prime because its positive divisors are only
Similarly, is prime because no positive integer other than and divides it.
Composite Numbers
A positive integer that is not prime is called composite.
Thus is composite if there exist integers such that
and
For example,
so is composite.
Similarly,
The integers greater than therefore split into two classes:
- prime numbers,
- composite numbers.
The integer belongs to neither class.
Why Is Not Prime
The integer has exactly one positive divisor, namely itself.
Prime numbers require exactly two distinct positive divisors:
Therefore is not prime.
This convention is essential for the uniqueness of prime factorization. If were prime, then factorizations would become nonunique because arbitrary copies of could be inserted:
but also
and
Excluding from the primes avoids this ambiguity.
Small Prime Numbers
The first few prime numbers are
Among these, is unique because it is the only even prime.
Indeed, every even integer greater than is divisible by , and therefore composite.
Thus every prime number except is odd.
However, not every odd integer is prime. For example,
Testing for Primality
To determine whether an integer is prime, one checks whether it has divisors other than and .
A basic observation simplifies this process.
Suppose with
Then at least one of or must satisfy
Indeed, if both were larger than , then
which is impossible.
Therefore, to test whether is prime, it suffices to check divisibility by integers up to
For example, to test whether is prime, one checks divisibility by
Since none divide , the number is prime.
Prime Divisors
Every composite integer has a prime divisor.
For example,
is divisible by , and
is divisible by and .
This fact is fundamental because it allows arbitrary integers to be reduced to primes.
A proof follows from strong induction. If is composite, then
with
If is prime, then is a prime divisor of . Otherwise is composite and has a smaller divisor. Repeating the process eventually reaches a prime divisor.
Prime Factorization
Primes are the basic multiplicative components of integers.
For example,
Similarly,
These decompositions are called prime factorizations.
The fundamental theorem of arithmetic states that every integer greater than can be written uniquely as a product of primes, up to ordering.
This theorem gives primes their central importance.
Infinitude of Primes
There are infinitely many prime numbers.
This fact was first proved by Euclid.
Suppose there were only finitely many primes:
Consider the integer
No prime divides , because division leaves remainder :
Thus either itself is prime or has a prime divisor not contained in the list. Both possibilities contradict the assumption that all primes were already listed.
Therefore infinitely many primes exist.
Distribution of Primes
Although infinitely many primes exist, they become less frequent among large integers.
For example, small intervals contain many primes:
But among very large integers, primes appear more sparsely.
The distribution of primes is one of the central problems of analytic number theory. The prime number theorem describes the asymptotic density of primes and shows that the number of primes up to is approximately
Despite this approximation, the exact distribution of primes remains highly irregular.
Primes in Number Theory
Prime numbers occupy a position in arithmetic analogous to that of atoms in chemistry. Composite integers are built multiplicatively from primes.
Many major areas of number theory revolve around prime numbers:
- prime factorization,
- congruences,
- quadratic residues,
- analytic estimates,
- algebraic number fields,
- elliptic curves,
- cryptography.
Modern cryptographic systems such as RSA depend directly on the arithmetic of large primes.
Even today, many basic questions about primes remain unsolved. Examples include the twin prime conjecture and the Riemann hypothesis.
Thus prime numbers lie at the center of both elementary and advanced number theory.