Prime Numbers

A prime number is a whole number greater than 1 with exactly two positive factors: 1 and itself. For example, 5 is prime, while 4 is composite because it can be divided evenly by 2.

Answer pageUpdated Nov 9, 2026

What makes a number prime?

A prime number is a natural number greater than 1 that cannot be written as a product of two smaller natural numbers. Its only positive divisors are 1 and the number itself.

A number greater than 1 that is not prime is called composite. For example, 5 is prime, but 4 is composite because 4 = 2 × 2.

How to check if a number is prime

To test a whole number, check whether any smaller whole number greater than 1 divides it evenly. You only need to check possible divisors up to the number’s square root.

  1. 1If the number is 1 or less, it is not prime.
  2. 2Check whether any whole number from 2 up to the square root divides it with no remainder.
  3. 3If one does, the number is composite; if none do, it is prime.

Examples of prime numbers

The first few prime numbers are 2, 3, 5, 7, 11, and 13. The number 2 is the only even prime, because every other even number is divisible by 2.

Numbers such as 6 and 9 are composite: 6 = 2 × 3, and 9 = 3 × 3.

Why prime numbers matter

Prime numbers are the basic building blocks of whole numbers greater than 1. The fundamental theorem of arithmetic says each such number is either prime or can be factored into primes in exactly one way, apart from the order of the factors.

Questions people ask

What is a prime number?

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

Is 1 a prime number?

No. A prime number has exactly two positive factors, while 1 has only one.

Is 2 a prime number?

Yes. Its only positive factors are 1 and 2, making it the smallest prime and the only even prime.

How can you tell if a number is prime?

Check whether any whole number greater than 1 and no greater than its square root divides it evenly. If none does, the number is prime.

Keep exploring