Skip to content
Prime Checker
Menu

Is 1 a Prime Number?

Updated · exact integer math

No. 1 is neither prime nor composite.

The short reason

A prime number has exactly two different divisors: 1 and itself. The number 1 has only one divisor, 1, so it doesn't fit. Saying "divisible only by 1 and itself" is a common shortcut that hides this, because for 1, "1" and "itself" are the same number.

The deeper reason: unique factorization

Every whole number above 1 can be broken into primes in exactly one way: 12 = 2 × 2 × 3, and there's no other set of primes that multiplies to 12. If 1 were prime, that would break: 12 = 2 × 2 × 3 = 1 × 2 × 2 × 3 = 1 × 1 × 2 × 2 × 3, and so on forever. Leaving 1 out keeps this result, the fundamental theorem of arithmetic, clean.

So what is 1?

Mathematicians call 1 a unit: a number that divides every other whole number. It's neither prime nor composite. The same goes for 0, for a different reason; see is 0 a prime number.

The primes start at 2. The full set up to 100 is on the prime numbers chart, and the definition is explained in what is a prime number.

Questions people ask

Is 1 a prime or composite number?

Neither. It has one divisor, and it can't be split into smaller factors.

Was 1 ever considered prime?

Some did, into the early 1900s. The modern convention excludes it so theorems don't need exceptions.

What is the smallest prime number?

Sources

More prime number tools