Skip to content
Prime Checker
Menu

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

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.

Sources

More prime number tools