Number Theory

Why 1 Is Not a Prime Number

Learn why mathematicians exclude 1 from the primes, how the choice protects unique factorization and why the rule has not always held.

Key takeaways

  • A prime has exactly two positive divisors, while 1 has just one, so it is neither prime nor composite.
  • Counting 1 as prime would destroy the uniqueness of prime factorization.
  • Algebra classifies 1 as a unit, a number with a multiplicative inverse, which is a category of its own.
  • Some earlier mathematicians did list 1 as prime, and the modern convention settled in over time.

The number 1 is not prime because a prime is defined to have exactly two different positive divisors, and 1 has only one. The deeper reason is that this definition keeps arithmetic clean. If 1 counted as prime, no number would have a unique factorization, since you could tack on as many 1s as you liked.

This is a decision about definitions, not a discovery that someone could have got wrong by miscalculating. Yet it is far from arbitrary. Almost every important theorem about primes reads better, and many would be false, if 1 were included.

Where the usual wording goes wrong

Many people learn that a prime is "a number divisible only by 1 and itself". Read quickly, that seems to admit 1, which is divisible by 1 and by itself. The trouble is that for this number the two are the same.

Better wordings close the gap. A prime is a whole number greater than 1 whose only positive divisors are 1 and itself. Equivalently, a prime is a positive integer with exactly two positive divisors.

Number Positive divisors How many Classification
1 1 one neither
2 1, 2 two prime
4 1, 2, 4 three composite
7 1, 7 two prime
12 1, 2, 3, 4, 6, 12 six composite

So the whole numbers from 1 upward fall into three groups: the number 1, the primes and the composites.

Unique factorization would collapse

The fundamental theorem of arithmetic says that every whole number above 1 is a product of primes in only one way, apart from order. For 6 the way is 2 × 3.

Now admit 1 as a prime.

6 = 2 × 3
6 = 1 × 2 × 3
6 = 1 × 1 × 2 × 3
and so on forever

You could rescue the theorem by saying "unique apart from order and any number of 1s". But then nearly every later statement needs the same footnote. Excluding 1 once, in the definition, is far tidier. The theorem itself is proved in why factorization is unique.

What, then, is the factorization of 1? It is the empty product, the result of multiplying no primes at all, which by convention equals 1. This matches the rule that a number raised to the power 0 is 1.

Theorems that would need exceptions

Here are some statements that hold cleanly for primes but fail for 1.

  • A prime has exactly two positive divisors. The number 1 has one.
  • The sum of the positive divisors of a prime p is p + 1. For 1 the sum is 1, not 2.
  • The number of positive integers up to p that share no factor with p is p − 1. For 1 the count is 1, not 0.
  • The sieve of Eratosthenes crosses out the multiples of each prime. Doing that for 1 would remove every other number and leave nothing to find.
  • Euler's product formula has one factor 1 ÷ (1 − 1/pˢ) for each prime p. Putting p = 1 makes the denominator 0.

The sieve example is the most vivid. If 1 were prime, "all multiples of a prime other than itself are composite" would declare every number from 2 upward composite.

Following one proof through

It helps to see exactly where an argument would break. The usual proof that factorizations are unique takes two lists of primes with the same product, finds a prime that appears in both, cancels it and repeats. At the end, both lists run out together.

The last step depends on this: a product of one or more primes is bigger than 1, so a nonempty list can never balance an empty one. If 1 were a prime, the product of the list 1, 1, 1 would equal the empty product. The proof would stop working at its final line, and the statement it proves would indeed be false.

Counting arguments break in the same way. The number of divisors of n comes from its exponents: add 1 to each and multiply. For 12 = 2² × 3 this gives 6. If you were also allowed to write 12 = 1⁵ × 2² × 3, the formula would report 36. The formula assumes that every prime in the product contributes new divisors, and 1 contributes none. See counting divisors.

The idea of a unit

Algebra gives a clearer view. A unit is an element that has a multiplicative inverse within the system. In the integers the units are 1 and −1, because 1 × 1 = 1 and (−1) × (−1) = 1. No other integer has an integer reciprocal.

Units divide everything, so they tell you nothing about the structure of a number. Multiplying by one is like relabeling. That is why factorizations such as 6 = 2 × 3 = (−2) × (−3) are treated as the same.

Four kinds of integer
Zero Every integer divides it; it stands alone Units 1 and −1, which have integer inverses Primes Such as 2, −3 or 5: no nontrivial split Composites Such as 6 or −15: a product of non-units Zero Every integer divides it; it stands alone Units 1 and −1, which have integer inverses Primes Such as 2, −3 or 5: no nontrivial split Composites Such as 6 or −15: a product of non-units

In the Gaussian integers, numbers a + bi with a and b integers, there are four units: 1, −1, i and −i. In some other number systems there are infinitely many. For instance, (√2 + 1)(√2 − 1) = 1, so every power of √2 + 1 is a unit among the numbers a + b√2. A definition of prime that admitted units would be hopeless there. The wider picture is in algebraic number theory.

A matter of history

The modern rule has not always been universal. Many ancient Greek writers did not even regard 1 as a number in the full sense: it was the unit from which numbers were composed. For them the question of whether it was prime hardly arose, and some did not count 2 among the primes either.

Once 1 was widely accepted as a number, opinions varied for a long time. Christian Goldbach, writing in the eighteenth century, treated 1 as a prime. As late as the early twentieth century, D. N. Lehmer published a widely used list of primes that began with 1.

The convention settled as number theory and algebra matured. As unique factorization became a central organizing theorem, and as units in other number systems were studied, leaving 1 out became the natural choice. Today it is standard.

What this teaches about definitions

Definitions are chosen. They are judged by whether they make true statements simple and keep arguments free of special cases. The same reasoning explains why 0! equals 1, and why division by zero is left undefined.

A good definition is often found only after the theorems are known. Mathematicians notice that the same exception keeps appearing and move the boundary so that it disappears. Compare the roles described in definitions, theorems and lemmas.

You can test a proposed definition for yourself. State a few theorems you care about, then see which version lets you state them without "except when". For primes, excluding 1 wins by a wide margin.

Could the other choice work?

Nothing stops you from writing a textbook in which 1 is called prime. No contradiction would appear. You would simply have to write "primes other than 1" in the factorization theorem, in the divisor formulas, in the sieve, in Euler's product and in most results about remainders.

You would also need a new name for "prime other than 1", because it is the idea you actually use. Within a week that new name would be doing all the work the word "prime" does now. This is a good sign that the standard convention draws the line in the right place.

Compare a case where the choice really is split. Some authors count 0 as a natural number and others do not, because each version makes different statements simpler. Neither side is mistaken, so careful writers say which they mean. For 1 and the primes, the balance of convenience is so lopsided that modern usage agrees.

Is 1 composite instead? No. A composite number is a product of two smaller positive integers, and 1 = 1 × 1 uses factors that are not smaller.

Is 1 a square, a cube and a triangular number? Yes, all three. Being excluded from the primes does not make it excluded from other families.

Are 1 and 7 coprime? Yes, since their greatest common divisor is 1. In fact 1 is coprime to every integer.

Does Goldbach's conjecture depend on the choice? The modern form says every even number greater than 2 is a sum of two primes. With 1 admitted, 2 = 1 + 1 would join, and cases such as 8 = 1 + 7 would become allowed, making a slightly different and weaker claim. The status of the modern version is discussed in the Goldbach conjecture.

Explaining it to a student

Start with tiles. A prime number of tiles, say 5, makes only a one-row rectangle with two different side lengths, 1 and 5. One tile makes a single square with both sides equal to 1.

Then move to factor trees. Ask the student to factor 12 and compare results with a classmate. Everyone ends with 2, 2 and 3. Next, allow 1 as a branch and ask when the tree stops. It never does, because each 1 can split into 1 × 1 again. Most students see at once why the rule is there.

Common questions

Did the number of primes change when the convention changed?

Only the label on one number changed. No arithmetic fact is different. There are still infinitely many primes, and the list now begins with 2.

Why is 2 prime if it is even?

It has exactly two positive divisors, 1 and 2. Evenness is no obstacle for the first multiple of 2, only for all the later ones.

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 59 articles in Number Theory →

Latest news on this topic