- Composite numbers have divisors beyond 1 and themselves.
- Every integer factors uniquely into primes.
- RSA encryption security depends on factoring difficulty.
A composite number is a positive integer greater than 1 that can be divided evenly by at least one number other than 1 and itself. The number 12, for example, divides evenly by 2, 3, 4, and 6. Any integer that is not composite and not equal to 1 is prime.
Why It Matters
Composite numbers sit at the center of one of mathematics' oldest and most practical ideas: that every integer can be broken into prime building blocks. The fundamental theorem of arithmetic, first outlined by Euclid of Alexandria around 300 BCE and rigorously proved by Carl Friedrich Gauss in 1801, states that every integer greater than 1 is either prime or can be expressed as a unique product of primes.
Key figure
4
Smallest composite number
The number 60, for instance, always factors into 2 x 2 x 3 x 5, regardless of the order you try. This theorem makes composite numbers the structural backbone of arithmetic. Without them, concepts like least common multiples, greatest common divisors, and fraction simplification would lack a foundation.
The practical stakes are enormous. Modern RSA encryption relies on a simple asymmetry: multiplying two large primes to produce a composite number takes milliseconds, but reversing the process (finding which primes produced the composite) can take centuries of computing time. Every secure banking transaction, encrypted message, and digital signature depends on this gap between easy multiplication and hard factorization.
How It Works
Identifying a composite number requires finding at least one divisor besides 1 and the number itself. The most direct method is trial division: test whether any integer from 2 up to the square root of the number divides it evenly. If 2 divides the number, stop. The number is composite.
All even numbers greater than 2 are composite, since 2 divides each of them. This makes 4 the smallest composite number, with exactly three divisors: 1, 2, and 4.
Key figure
2,300 years
Since Euclid defined composite numbers
Odd composites require more effort to identify. The number 91 looks prime at first glance, but it equals 7 x 13. Numbers like these resist quick mental checks, making systematic testing essential.
For larger numbers, mathematicians use faster algorithms. The Sieve of Eratosthenes, developed in the 3rd century BCE, systematically eliminates composite numbers from a list to isolate primes. Modern computational sieves like the Number Field Sieve can factor composites with hundreds of digits, though the computing cost grows exponentially with size.
Key Context
Euclid distinguished prime from composite in Book VII, Definition 13 of his Elements. He described a composite number as one "measured by some number," meaning divisible by a smaller integer. This definition has remained essentially unchanged for over 2,300 years.
The number 1 is neither prime nor composite. Mathematicians settled this convention in the early twentieth century to preserve the uniqueness guaranteed by the fundamental theorem of arithmetic. If 1 were prime, every number would have infinitely many prime factorizations (since you could always multiply by another factor of 1).
FAQ
What is the difference between prime and composite numbers?
A prime number has exactly two divisors: 1 and itself. A composite number has three or more divisors. The number 7 is prime (divisible only by 1 and 7), while 12 is composite (divisible by 1, 2, 3, 4, 6, and 12). The number 1 is neither.
Can a composite number be odd?
Yes. The smallest odd composite number is 9, which equals 3 x 3. Other examples include 15 (3 x 5), 21 (3 x 7), and 25 (5 x 5). All even numbers greater than 2 are composite, but many odd numbers are composite too.
Why are composite numbers important in cryptography?
RSA encryption works by multiplying two large prime numbers to create a composite number used as a public key. Breaking the encryption requires factoring that composite back into its prime components. With primes hundreds of digits long, this factorization is computationally impractical with current technology.
How do you test whether a large number is composite?
Trial division works for small numbers, but for large numbers, probabilistic tests like the Miller-Rabin test are faster. These tests can confirm a number is composite with certainty, or declare it probably prime with a controllable margin of error.
Related Reading


Sources
- Primary Reference: Euclid's Elements, Book VII (Clark University, Joyce edition)
- Additional Context:
- Fundamental Theorem of Arithmetic (EBSCO Research Starters)
- Composite Number (Britannica)
- The Mathematics behind RSA (San Jose State University)
Fact Check: Claim-by-Claim Verification Verified
All core mathematical claims verified against authoritative sources. Sieve of Eratosthenes date corrected from "240 BCE" to "3rd century BCE" during review.
Sources used for verification
- Composite Number - britannica.com
- Fundamental Theorem of Arithmetic - ebsco.com
- Euclid's Elements Book VII - clarku.edu
- Disquisitiones Arithmeticae - britannica.com
- RSA Mathematics - sjsu.edu
