Prime Number Checker
Check whether a number is prime (even huge ones), factor it into primes, list its divisors and the nearest primes, and find every prime in a range.
Free, no sign-up
Your data stays on your device
Works offline after first open
The tool
Loading the tool…
How to use
- Type a number (up to 100 digits) to see whether it is prime and its factorization.
- You also get the divisor count and sum, and the primes before and after it.
- For a range, enter the start and end (up to a million numbers at a time).
Privacy & how it works
Processes your data in the browser and stores nothing.
- Engine: lightweight in-page code, no external libraries.
- Works offline after you open it once.
Frequently asked questions
How can it tell a huge number is prime?
With the Miller–Rabin test. Below 3.3 × 10^24 the answer is mathematically certain (fixed, proven bases). Above that we say “probably prime”: the error chance is below 1 in 10^15, but it is not a proof.
Why does factoring sometimes not finish?
Factoring large numbers is genuinely hard (it is what cryptography relies on). We try trial division and then Pollard’s rho for a limited time; if a large composite part remains, we tell you it was not factored.
Is 1 a prime?
No. A prime has exactly two distinct divisors (1 and itself); 1 has only one. The smallest prime is 2, the only even prime.
Formulas & sources
Related tools
GCD & LCM CalculatorFind the greatest common divisor (GCD) and least common multiple (LCM) of two or more numbers, with Euclid’s algorithm steps and the prime factorization method for study.Roman Numeral ConverterConvert numbers to Roman numerals and back (1 to 3999) with a breakdown of how they are built, write dates in Roman numerals, and catch non-standard forms like IIII.Number Base ConverterConvert whole numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36, however large, with digit grouping for readability and a two’s-complement view for 8, 16, 32 or 64 bits.Scientific CalculatorScientific calculator with a full expression line and on-screen keys: trig in degrees or radians, logs, roots, powers, factorial and percent, plus a history of your recent calculations.