Prime Number Checker: Test, Factorize and List Primes

Check whether a number is prime, see its prime factors, and list all primes in a range.

Loading tool…

How to use the Prime Number Checker

  1. Type a whole number to test it. Very large numbers work too.
  2. Read the verdict, prime factorization, divisors and nearest primes.
  3. Switch to Primes in a range to list every prime between two numbers.
  4. Copy the list to use it elsewhere.

About this tool

A prime number is a whole number greater than 1 whose only divisors are 1 and itself. Numbers greater than 1 that are not prime are composite. Zero and one are neither. Every composite number can be written as a product of primes in exactly one way, which is its prime factorization, for example 360 = 2³ × 3² × 5.

The checker uses BigInt arithmetic and the Miller-Rabin test with fixed bases, with the first 13 prime bases, which is proven exact for numbers below about 3.3 x 10²⁴; above that the tool labels the result a probable prime (a composite number passing all 13 bases is extremely unlikely), so numbers with 20 or more digits are tested instantly. Factorization uses trial division, which is fast for numbers up to roughly 14 digits but can be too slow for very large numbers with big prime factors; the tool then says the factorization is incomplete.

Primes in a range are found with the Sieve of Eratosthenes, limited to an upper bound of 5,000,000 so your browser stays responsive. Primes are the basis of public-key cryptography, hashing and many puzzles.

Frequently asked questions

Is 1 a prime number?

No. A prime must have exactly two distinct divisors, and 1 has only one.

How do I check a large number for primality?

Paste it into the box. The tool uses a Miller-Rabin test, so even numbers with 30 digits are checked immediately.

What is the largest range I can list?

Up to 5,000,000. The count of primes is exact and the first 5,000 are shown on screen, with Copy giving the complete list.

What is prime factorization?

Writing a number as a product of primes. 84 = 2² × 3 × 7.

Need a custom tool or website?

IDM Valley builds web apps, calculators, AI chatbots and automation for businesses. Fixed prices, code in your name.

Get a free quote

Have a project in mind?

Tell us what you need: a website, landing page, AI chatbot or automation. You get a clear scope and a fixed price within one working day. Free, no obligation.


  • avshack
  • DivineBamboo
  • goldleaf
  • janapril
  • kaizen
  • kwc
  • modv
  • pixelrush
  • revital
  • riderzplanet
  • sandsfashions
  • avshack
  • DivineBamboo
  • goldleaf
  • janapril
  • kaizen
  • kwc
  • modv
  • pixelrush
  • revital
  • riderzplanet
  • sandsfashions