Skip to content
YouNeed Tools
Free VPN

Prime Number Checker

Type a whole number to see whether it is prime, its prime factors and divisors, and the primes either side. Below, list all the primes in any range.

Prime

97 is prime: no whole number from 2 up to √97 ≈ 9.85 divides it.

Prime factorization

97

Next prime

101

Previous prime

89

Number of divisors

2

Divisors: 1, 97

List primes in a range

25 primes: 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

Worked out on your device.

Worked example

Is 91 prime? You only need to test divisors up to √91 ≈ 9.5, so try 2, 3, 5 and 7. It isn’t even, its digits add to 10 (not a multiple of 3), it doesn’t end in 0 or 5, but 91 ÷ 7 = 13. 91 is not prime: it divides by 7 (91 = 7 × 13). By contrast, 97 survives 2, 3, 5 and 7: 97 is prime: no whole number from 2 up to √97 ≈ 9.85 divides it.

The primes below 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. There are 25 of them.

How many primes there are

Up toNumber of primes
10025
1,000168
10,0001,229
100,0009,592
1,000,00078,498

Primes thin out as numbers grow, roughly like n ÷ ln(n) (the prime number theorem), but Euclid proved over 2,000 years ago that they never run out.

Quick divisibility tests

  • By 2: the last digit is even.
  • By 3: the digits add up to a multiple of 3.
  • By 5: the last digit is 0 or 5.
  • By 7: double the last digit and subtract it from the rest; repeat. 91: 9 − 2 = 7, so yes.
  • By 11: alternately add and subtract the digits; a result of 0 or a multiple of 11 means yes.

Prime numbers keep the internet safe: RSA encryption multiplies two huge primes, and its security rests on how hard it is to factor the product back. That is also why a checker can say a 24-digit number is prime almost instantly while factoring a 600-digit product is out of reach.

Related tools

Sources

Checked on November 26, 2026:

Frequently asked questions

What is a prime number?
A whole number greater than 1 whose only divisors are 1 and itself. 2, 3, 5, 7, 11 and 13 are prime; 9 is not, because 9 = 3 × 3.
Is 1 a prime number?
No. Since the early twentieth century 1 has been left out by definition, so that every whole number above 1 has exactly one prime factorization.
Is 2 the only even prime?
Yes. Every other even number divides by 2.
How does the checker test big numbers?
For numbers up to 24 digits it uses the Miller–Rabin test with the first 13 primes as bases, which is proven to give the right answer for every number below 3.3 × 10²⁴. Factors are found by trial division and then Pollard’s rho method.
What is the largest known prime?
The record holders are Mersenne primes of the form 2ᵖ − 1, found by the GIMPS project. The largest found by late 2024, 2¹³⁶²⁷⁹⁸⁴¹ − 1, has over 41 million digits.
How do I list primes?
Use the range box: the sieve of Eratosthenes crosses out the multiples of each prime in turn, leaving only primes, for any range up to ten million.

Last updated: 2026-11-26