Prime Number Checker & Factorizer
Check if any number is prime and find its complete prime factorization. Tests numbers instantly with factor breakdown.
Runs in your browser. No data leaves your device.
About this tool
Checks whether a whole number is prime and, for composite numbers, shows its prime factorization and full list of divisors. Includes a clickable 1-100 grid with the 25 primes highlighted.
Features
- Primality by deterministic Miller-Rabin (exact for every allowed input) and factorization by small-prime trial division plus Pollard rho, so even 15-digit numbers answer instantly
- Prime factorization for composites, shown as e.g. "2 x 2 x 3 x 5"
- All divisors with a count, built from the prime factorization
- Tap the factorization or the divisor list (shown in full) to copy it; one Pipeline button sends the one tapped last
- Clickable 1-100 grid; primes are highlighted and clicking a number checks it
- Explanation line (e.g. "Numbers less than 2 are not prime")
How to use it
- Type a number, or click one in the 1-100 grid.
- Read Prime / Not Prime, the factorization and the divisors.
Inputs
- An integer up to 1,000,000,000,000,000 (1e15) in absolute value
Outputs
- Prime / Not Prime verdict, prime factorization, sorted divisor list
Limits and notes
- Numbers larger than 1e15 are rejected with a message
- Whole numbers only: decimals such as 7.5 show a message instead of being truncated (1e3 and 1,000 are read as 1000); 0, 1 and negative numbers are reported as not prime, and negatives get no factorization or divisor list
- Nothing is saved; runs entirely in the browser
Frequently Asked Questions
How does the Prime Number Checker work?
The tool uses the Miller-Rabin primality test with a fixed set of bases that makes it exact for every allowed input, and factors composites by trial division by small primes plus Pollard's rho method, so even 15-digit numbers answer instantly. Divisors are built from the prime factorization.
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. Examples include 2, 3, 5, 7, 11, 13, 17, and 19.
How large of a number can I check?
Up to 1,000,000,000,000,000 (one quadrillion). Larger numbers are rejected to keep the page responsive. Checks are instant at every size.
What is prime factorization?
Prime factorization breaks a number into the product of prime numbers. For example, 60 = 2 x 2 x 3 x 5. Every whole number greater than 1 has a unique prime factorization.