Math

Instant, private, and free

Prime Number Calculator.

Check if a number is prime, find primes in a range, or get prime factorization

On-device calculationNo signup
01

Set your values

Results update as you type.

About Prime Numbers

A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. The first few prime numbers are 2, 3, 5, 7, 11, 13, 17, 19, 23, and 29.

FAQ

What is a prime number?

A prime number is a whole number greater than 1 that cannot be exactly divided by any whole number other than itself and 1.

Is 1 a prime number?

No, 1 is not considered a prime number. Prime numbers must have exactly two distinct factors: 1 and itself.

What is the smallest prime number?

The smallest prime number is 2. It's also the only even prime number.

FAQs

What is a prime number?

A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself.

Is 1 a prime number?

No, 1 is not considered a prime number. By definition, primes must have exactly two distinct factors.

What is the fastest way to check if a number is prime?

For small numbers, trial division is efficient. For larger numbers, use algorithms like Miller-Rabin primality test.