Prime numbers: what they are, how to find them and why 1 isn't one
TutorAura guide · Updated
A prime number is a whole number greater than 1 whose only factors are 1 and itself. 7 is prime (only 1 × 7); 8 isn't, because 2 × 4 = 8 as well. Primes are the building blocks of all whole numbers: every number bigger than 1 can be written as a product of primes in exactly one way. That's why they come up in factor trees, highest common factors, lowest common multiples and, far beyond school, in the encryption that protects online payments.
Key takeaways
- A prime has exactly two factors: 1 and itself.
- 2 is the only even prime; 1 is not prime.
- To test a number, try dividing by primes up to its square root.
- Every whole number above 1 is a unique product of primes.
The primes up to 100
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97.
That's 25 primes under 100. They thin out as numbers get bigger, but they never stop: there are infinitely many, a fact proved by Euclid over two thousand years ago.
Numbers above 1 that aren't prime are called composite: 4, 6, 8, 9, 10, 12 and so on.
Why 1 is not a prime number
A prime has exactly two factors. The number 1 has only one factor (itself), so it doesn't qualify. There's also a practical reason: if 1 counted as prime, the "unique product of primes" rule would break, because 12 = 2 × 2 × 3 = 1 × 2 × 2 × 3 = 1 × 1 × 2 × 2 × 3 and so on, forever.
And 2 is prime: its factors are 1 and 2, nothing else. It's the only even prime, because every other even number has 2 as an extra factor.
How to test whether a number is prime
You only need to try dividing by the primes up to the square root of the number. If none of them divides it, it's prime.
Is 91 prime? , so test 2, 3, 5 and 7. It's odd (not 2); its digits sum to 10 (not 3); it doesn't end in 0 or 5 (not 5); 91 ÷ 7 = 13. So 91 is not prime: 91 = 7 × 13.
Is 97 prime? , so test 2, 3, 5 and 7. Odd; digit sum 16; doesn't end in 0 or 5; 97 ÷ 7 = 13.86… So 97 is prime.
Useful divisibility checks: a number is divisible by 2 if it's even, by 3 if its digit sum is divisible by 3, by 5 if it ends in 0 or 5.
Prime factorisation
Writing a number as a product of primes is prime factorisation, usually done with a factor tree. Split the number into any two factors and keep splitting until every branch ends in a prime.
Whatever route you take through the tree, you get the same primes. Our prime factorisation calculator shows the tree for any number.
Where primes are used
- HCF and LCM: write both numbers as products of primes, then the highest common factor is the primes they share and the lowest common multiple is every prime at its highest power.
- Simplifying fractions and surds: spotting the prime factors shows what cancels.
- Encryption: systems like RSA rely on the fact that multiplying two huge primes is easy but splitting the result back into them is extremely slow. Each secure website connection depends on this.
Common mistakes
- Calling 1 a prime, or forgetting 2.
- Thinking all odd numbers are prime: 9, 15, 21, 25, 27 and 33 are not.
- Testing divisibility by every number instead of just primes up to the square root.
- Mixing up factors (numbers that divide into it) and multiples (its times table).
Practice questions
- List the prime numbers between 20 and 40.
- Is 51 prime?
- Is 101 prime?
- Write 84 as a product of its prime factors.
- What is the smallest prime factor of 221?
Answers: 1. 23, 29, 31, 37. 2. No: 51 = 3 × 17. 3. Yes (test 2, 3, 5, 7; none divides it). 4. . 5. 13 (221 = 13 × 17).
Frequently asked questions
Is 1 a prime number?
No. A prime has exactly two factors, 1 and itself. The number 1 has only one factor.
Is 2 a prime number?
Yes. Its only factors are 1 and 2. It's the only even prime.
What is the largest prime number?
There isn't one: there are infinitely many primes. The largest known primes have tens of millions of digits and are found by computer searches.
Sources
- GCSE mathematics: subject content and assessment objectives. Department for Education.
- National curriculum in England: mathematics programmes of study. Department for Education.
Keep reading
Factor trees: how to find prime factors step by step
How to draw a factor tree, write the answer in index form, and use it for HCF, LCM and roots.
How to find the HCF (highest common factor): 3 methods
Listing factors, prime factors and Euclid's method, with worked examples and word problems.
How to find the LCM (lowest common multiple): 3 methods
Listing multiples, prime factors and Venn diagrams, with worked examples and word problems.
Prime factorisation calculator with a factor tree
Any number as a product of primes, in index form, with its factor tree drawn for you.