What Is a Prime Number?

A prime number is a whole number greater than 1 that has exactly two distinct factors: 1 and itself. That's the only definition you need.

7 is prime — its only factors are 1 and 7
12 is not prime — factors are 1, 2, 3, 4, 6, 12
2 is prime — the only even prime number

Numbers with more than two factors are called composite numbers. The number 1 is special — it's neither prime nor composite (it has only one factor, itself).

The First 50 Prime Numbers

Primes don't follow a neat pattern, which is part of what makes them fascinating. Here's the list up to around 230:

2357111317192329
31374143475359616771
7379838997101103107109113
127131137139149151157163167173
179181191193197199211223227229

Notice a couple of things: 2 is the only even prime (every other even number is divisible by 2, so it can't be prime). And 5 is the only prime ending in 5 (all others ending in 5 are divisible by 5).

How to Test if a Number Is Prime

Method 1 — Trial Division

Try dividing the number by every prime up to its square root. If none of them divide evenly, it's prime. You only need to check up to the square root because if a number has a factor larger than its square root, the corresponding factor pair will be smaller than the square root — and you'll have already checked it.

Is 97 prime?
√97 ≈ 9.8, so check primes up to 9: 2, 3, 5, 7
97 ÷ 2 = 48.5 (not whole)
97 ÷ 3 = 32.33... (not whole)
97 ÷ 5 = 19.4 (not whole)
97 ÷ 7 = 13.86... (not whole)
No factor found → 97 is prime ✓
Is 91 prime?
√91 ≈ 9.5, check primes up to 9: 2, 3, 5, 7
91 ÷ 7 = 13 (exact!) → 91 = 7 × 13
91 is NOT prime (many people think it is, by the way)

Method 2 — Quick Divisibility Checks

Before doing long division, run through these shortcuts:

Divisible byQuick Check
2Last digit is even (0, 2, 4, 6, 8)
3Sum of digits is divisible by 3
5Last digit is 0 or 5
7No simple shortcut — just divide
11Alternating digit sum is divisible by 11

If your number passes none of these and you've checked divisibility by 2, 3, 5, 7, and 11 (for numbers under 169), you can be confident it's prime without going further.

Is 1 a Prime Number?

No — and this question comes up more than you'd think. 1 is not prime. The definition requires exactly two distinct factors, and 1 only has one factor (itself). Historically, some mathematicians did include 1 as prime, but modern math settled on excluding it because keeping it prime would break the Fundamental Theorem of Arithmetic, which states that every number has a unique prime factorization. If 1 were prime, you'd have: 6 = 2 × 3 = 1 × 2 × 3 = 1 × 1 × 2 × 3... no unique factorization. So 1 sits on its own — neither prime nor composite.

Prime Factorization

Every whole number greater than 1 can be written as a product of primes in exactly one way (ignoring order). This is called prime factorization and it's the foundation for finding GCF and LCM.

60 = 2 × 2 × 3 × 5 = 2² × 3 × 5
84 = 2 × 2 × 3 × 7 = 2² × 3 × 7
100 = 2 × 2 × 5 × 5 = 2² × 5²

The easiest way is the factor tree — keep splitting a number into two factors until all branches are prime.

Why Primes Matter Beyond School

RSA encryption — the technology that secures HTTPS websites, banking apps, and credit card transactions — relies entirely on the fact that multiplying two large primes is easy, but factoring the result back into those two primes is computationally very hard. A 2048-bit RSA key involves prime numbers with hundreds of digits. Even with modern computers, factoring those products would take longer than the age of the universe.

So every time you see the padlock icon in your browser, prime numbers are doing the heavy lifting to keep your data safe. Not bad for numbers that look simple.

Interesting Properties

  • There are infinitely many prime numbers — Euclid proved this around 300 BC.
  • Twin primes are pairs of primes that differ by 2: (3, 5), (5, 7), (11, 13), (17, 19), (29, 31)... Whether there are infinitely many twin primes is an unsolved problem.
  • Goldbach's Conjecture (1742) says every even number greater than 2 is the sum of two primes. It's been verified for enormous numbers but never formally proven.
  • The largest known prime (as of recent years) has tens of millions of digits.

Using the Prime Checker

For larger numbers where mental division gets tedious, the SolveCalc prime checker will instantly tell you if any number you enter is prime, and if not, gives you its prime factorization.

Conclusion

Primes are one of those concepts that starts simple ("a number divisible only by 1 and itself") and gets increasingly deep the further you go. For practical purposes — factoring, simplifying fractions, GCF/LCM — knowing how to test a number for primality and do prime factorization is enough. Remember: check divisibility by primes up to the square root, 2 is the only even prime, and 1 is neither prime nor composite. Everything else builds on those basics.