Explainer 5 min read

Is 1 a Prime Number? Why Not, and Why 2 Is the Only Even Prime

Why 1 is not a prime number, why 2 is the only even prime, how 0 and negative numbers are classed, and how to check any number with a free prime checker.

is 1 a prime numberis 2 a prime numberwhy is 1 not primeis 0 a prime numbersmallest prime number

The short answer

No, 1 is not a prime number. A prime is a whole number greater than 1 that has exactly two different factors: 1 and itself. The number 1 has only one factor, so it is neither prime nor composite. The smallest prime is 2, which is also the only even prime. You can check any number in the free Prime Number Checker, which says "1 is neither prime nor composite" when you enter 1.

The definition, carefully

A prime number is a whole number greater than 1 whose only factors are 1 and the number itself.

A composite number is a whole number greater than 1 that has at least one other factor.

The phrase "greater than 1" is there on purpose. Here is how the smallest numbers sort out:

NumberFactorsType
0Every number divides 0Neither prime nor composite
11Neither prime nor composite
21, 2Prime
31, 3Prime
41, 2, 4Composite
51, 5Prime
61, 2, 3, 6Composite
71, 7Prime
81, 2, 4, 8Composite
91, 3, 9Composite
101, 2, 5, 10Composite

Why mathematicians exclude 1

"It has only one factor" is the textbook reason. The deeper reason is about what primes are for.

Every whole number greater than 1 can be written as a product of primes in exactly one way, apart from the order. This is called the fundamental theorem of arithmetic. For example:

  • 12 = 2 × 2 × 3
  • 60 = 2 × 2 × 3 × 5

If 1 counted as prime, that "exactly one way" would break. You could write 12 as 2 × 2 × 3, or 1 × 2 × 2 × 3, or 1 × 1 × 2 × 2 × 3, and so on forever. Every statement about prime factorisation would need the phrase "primes other than 1". Leaving 1 out keeps the rules clean.

Historically, not everyone agreed. Some mathematicians in earlier centuries did list 1 as a prime. The modern convention, used in schools, exams and maths everywhere today, is that 1 is not prime.

Is 2 a prime number?

Yes. Its only factors are 1 and 2, so it fits the definition exactly. It is the smallest prime.

Why 2 is the only even prime

Every even number is divisible by 2. So any even number bigger than 2 has at least three factors: 1, 2 and itself. That makes it composite.

  • 4 = 2 × 2
  • 6 = 2 × 3
  • 100 = 2 × 50

So 2 is the only even number that is prime. Every other prime is odd. That doesn't mean every odd number is prime: 9, 15 and 21 are odd but composite.

What about 0 and negative numbers?

  • 0 is not prime and not composite. Every non-zero number divides 0, so it doesn't have "exactly two" factors.
  • Negative numbers are not prime under the usual school definition, which only covers whole numbers greater than 1. In more advanced algebra, −7 is described as an "associate" of 7, but that is beyond what exams expect.

How the checker handles these cases

Open the Prime Number Checker and type a positive whole number.

  • 1: "1 is NOT a prime number", with the note "1 is neither prime nor composite by definition".
  • 2: "2 is a prime number".
  • A composite number such as 60: "60 is NOT a prime number", with its prime factorisation, 60 = 2^2 × 3 × 5.
  • 0 or an empty box: no result is shown, because the checker only works with positive whole numbers.

The List Primes tab lists every prime up to a limit you choose, from 10 to 1,000. Up to 100 there are 25 primes, starting 2, 3, 5, 7, 11. The full list and the sieve method are in prime numbers 1 to 100.

The first 15 primes

PositionPrimePositionPrimePositionPrime
1st26th1311th31
2nd37th1712th37
3rd58th1913th41
4th79th2314th43
5th1110th2915th47

Apart from 2 and 3, every prime is one more or one less than a multiple of 6, such as 5, 7, 11 and 13. The reverse isn't true: 25 is one more than 24 but equals 5 × 5.

Quick test for small numbers

To check whether a number is prime by hand, you only need to try dividing by primes up to its square root.

Example: is 91 prime?

  • √91 is a little over 9.5, so try 2, 3, 5 and 7.
  • 91 ÷ 7 = 13 exactly.
  • So 91 = 7 × 13 and is composite.

Example: is 97 prime?

  • √97 is a little under 10, so try 2, 3, 5 and 7.
  • None divides evenly.
  • So 97 is prime.

For a step-by-step method with larger numbers, see how to check if a number is prime.

Common mistakes

  • Saying 1 is prime because "it's only divisible by 1 and itself". For 1, "1 and itself" is the same number, so that is one factor, not two.
  • Saying 2 isn't prime because it's even. Being even only rules out numbers above 2.
  • Assuming all odd numbers are prime. 9, 15, 21, 25 and 27 are all odd composites.
  • Calling 1 composite. It is neither.

Frequently asked questions

Is 1 a prime number?

No. A prime is a whole number greater than 1 with exactly two different factors, 1 and itself. The number 1 has only one factor, so it is neither prime nor composite.

Is 2 a prime number?

Yes. Its only factors are 1 and 2. It is the smallest prime and the only even prime.

Why is 2 the only even prime number?

Every even number is divisible by 2, so any even number above 2 has at least three factors: 1, 2 and itself. That makes it composite.

Is 0 a prime number?

No. Zero is neither prime nor composite, because every non-zero number divides it.

What is the smallest prime number?

2.

Try this tool on Lazyblink

Put this guide into practice with our free online tool — no signup required.

Open tool