What Is a Prime Number?
Updated · exact integer math
A prime number is a whole number greater than 1 that has exactly two divisors: 1 and itself.
Prime number definition and examples: 2, 3, 5, 7, 11, 13
5 is prime because only 1 and 5 divide it evenly. 6 isn't, because 2 and 3 also divide it. Numbers greater than 1 that aren't prime are called composite numbers.
The primes under 50:
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47
That's 15 primes below 50 and 25 below 100. See them highlighted on the prime numbers chart.
Facts about prime numbers
- 2 is the only even prime. Every other even number is divisible by 2.
- 1 is not prime. It has only one divisor. Why that matters is explained in is 1 a prime number.
- Every whole number above 1 is a product of primes in exactly one way (ignoring order): 60 = 2 × 2 × 3 × 5. This is the fundamental theorem of arithmetic, and it's why primes are called the building blocks of numbers.
- Primes thin out but never stop. There are 168 primes below 1,000 and 1,229 below 10,000, and Euclid proved there are infinitely many.
- The largest known prime is 2^136,279,841 − 1, with over 41 million digits, found in 2024.
What is the smallest prime number?
The smallest prime number is 2. It's also the only even prime. The first 10 prime numbers are 2, 3, 5, 7, 11, 13, 17, 19, 23 and 29, and the prime numbers less than 10 are 2, 3, 5 and 7. There's no largest prime, since there are infinitely many; the largest one found so far is 2^136,279,841 − 1.
Why prime numbers matter
Much of online security rests on primes. RSA encryption, for example, uses a number made by multiplying two huge primes; multiplying is quick, but recovering the two primes from the product is, with today's methods, far too slow for very large numbers.
Want to test a number yourself? Use the prime number checker.
Questions people ask
What is a prime number in simple words?
A number you can only arrange as one row or as rows of one. 7 is prime; 6 isn't, because it also makes 2 rows of 3.
What are the first 10 prime numbers?
2, 3, 5, 7, 11, 13, 17, 19, 23, 29.
Is 0 a prime number?
No: every positive number divides 0.
Are there infinitely many primes?
Yes. Euclid's proof: multiply any list of primes and add 1; the result has a prime factor not on the list.