Prime Number Definition

Prime Number Definition: What Is a Prime Number?

Quick question: Is 51 prime? Most people say yes on the first try. It looks prime. It isn’t, because 3 × 17 = 51. Mistakes like that are exactly why the prime number definition is worth learning properly, not just memorising.

So let’s go through it slowly. By the end, you’ll know what a prime is, you’ll have the full list up to 100, and you’ll be able to test any number without guessing.

What Is the Prime Number Definition?

A prime number is a whole number bigger than 1 that can only be divided evenly by 1 and by itself.

Try it with 7. Divide it by 2, 3, 4, 5, or 6, and something is always left over. Only 1 and 7 go in cleanly, so 7 is prime. Now try 8. It splits evenly by 2 and by 4 as well, so it fails.

Another way to put it: a prime has exactly two factors. Not one, not three. Just two.

If you’re hunting for factors, a multiplication square speeds things up a lot. Apps like DoodleMaths even let you open one halfway through a question, which is handy when you’re stuck.

A Few Quick Examples

NumberFactorsHow many?Prime?
21, 22Yes
31, 32Yes
61, 2, 3, 64No
91, 3, 93No
131, 132Yes
151, 3, 5, 154No
171, 172Yes

What Makes a Number Prime?

A number has to tick all of these boxes:

  1. It’s a whole number, so no fractions or decimals.
  2. It’s greater than 1.
  3. It has exactly two factors: 1 and itself.

Two extra facts are worth knowing. Apart from 2, every prime is odd. And the list never stops, because Euclid showed more than 2,000 years ago that there are infinitely many primes.

Prime Numbers from 1 to 100

There are 25 primes in this range. I’ve split them into four rows so you’re not squinting at one long line:

RangePrimesHow many
1 to 252, 3, 5, 7, 11, 13, 17, 19, 239
26 to 5029, 31, 37, 41, 43, 476
51 to 7553, 59, 61, 67, 71, 736
76 to 10079, 83, 89, 974

Notice how they thin out as the numbers grow. Nine primes in the first 25 numbers, only four in the last 25.

is 11 a prime number illustration

Is 1 a Prime Number?

No, and this is the one people argue about most. The number 1 has a single factor: itself. A prime needs two different ones, so 1 doesn’t make the cut. Zero doesn’t either.

How to Check if a Number Is Prime

When I’m testing a number n, this is the order I go in:

  1. If n is 1 or less, it isn’t prime. Stop here.
  2. If n is 2, it’s prime.
  3. If n is even, it isn’t prime.
  4. If n ends in 5 and isn’t 5 itself, it isn’t prime.
  5. Add up the digits. If the total is divisible by 3, the number does too, so it isn’t prime.
  6. Try 7, 11, 13, and so on, but only up to the square root of n.

That last step is the time-saver. If a number has a factor bigger than its square root, it has a smaller partner factor too, and you’d have spotted that one already. Take 97. Its square root is about 9.8, so you only need to try 2, 3, 5, and 7. None of them divide it, so 97 is prime.

Let’s try 91. It’s odd and doesn’t end in 5. The digits add up to 10, so 3 is out. But 7 × 13 = 91, so it isn’t prime. It’s a sneaky one, because it looks prime at a glance.

Is 2 a Prime Number?

Yes. It’s the smallest prime, and it’s also the only even one. That makes it the odd one out, which is a slightly funny thing to say about an even number.

Here’s why it’s the only one: every other even number can be divided by 2, so it gets an extra factor and drops out. That’s the reason every prime after 2 is odd.

Don’t flip that around, though. Odd doesn’t mean prime. 9, 15, and 21 are all odd, and none of them are prime.

Prime vs Composite Numbers

A composite number has three or more factors. 4, 6, 8, 9, and 12 are all composite.

PrimeComposite
FactorsExactly 23 or more
Examples2, 3, 5, 7, 114, 6, 8, 9, 10
Smallest24

Zero and 1 are in neither group, and negative numbers aren’t counted as prime or composite.

The Sieve of Eratosthenes

If you’d rather find every prime up to 100 in one go, this old method works well, and kids usually enjoy it with a pencil and a hundred square:

  1. Write the numbers 1 to 100 and cross off 1.
  2. Circle 2, then cross off every multiple of 2.
  3. Circle 3, then cross off every multiple of 3.
  4. Do the same for 5 and 7. After that, nothing new gets crossed off.
  5. Whatever is still standing is prime.

Prime Factorisation

Every whole number above 1 is either prime itself or can be written as a product of primes. And for any number, there’s only one way to do it.

NumberWritten as primes
122 × 2 × 3
302 × 3 × 5
453 × 3 × 5
602 × 2 × 3 × 5
842 × 2 × 3 × 7

A factor tree is the easiest way to get there. Say you start with 60. Split it into 6 × 10. Then 6 becomes 2 × 3, and 10 becomes 2 × 5. Put it together and 60 = 2 × 2 × 3 × 5.

Why Do Prime Numbers Matter?

Think of primes as the atoms of the number system. Everything else is built by multiplying them together.

They also matter outside the classroom. Online banking and private messages rely on encryption, and that encryption leans on a simple imbalance. Multiplying two enormous primes is quick. Starting from the answer and working out which two primes made it is painfully slow. That gap is what keeps your data safe. Primes also turn up in hash tables and telecom codes.

Practice Questions

Have a go before you check the answers:

  1. Is 51 prime? (Hint: 5 + 1 = 6)
  2. Is 91 prime? (Hint: try 7)
  3. Write 45 as a product of primes.
  4. How many primes are there between 1 and 50?

Answers: 1) No, 51 = 3 × 17. 2) No, 91 = 7 × 13. 3) 3 × 3 × 5. 4) 15.

FAQs

What is the smallest prime number?

2. It is also the only even prime.

Is 1 a prime number?

No. It has only one factor.

Is 0 a prime number?

No.

How many prime numbers are there up to 100?

There are 25.

Are all odd numbers prime?

No. 9, 15 and 21 are odd but not prime.

Wrapping Up

A prime number is a whole number above 1 with exactly two factors: 1 and itself. 2 is the smallest and the only even one. 1 doesn’t count, and there are 25 primes up to 100. To test any number, use the quick divisibility checks or the Sieve of Eratosthenes, and use a factor tree to break a number down into primes.

Scroll to Top