About this tool
Enter a whole number of up to 200 digits to find out instantly whether it is prime. Composite numbers are broken into their prime factors, and the nearest primes on either side are listed along with the number of divisors. All of this runs in your browser with big-integer arithmetic.
How to use Prime Number Checker
- Type or paste a whole number.
- Read whether it is prime or composite.
- Check the factorization and neighbouring primes below.
Frequently asked questions
Is 1 a prime number?
No. A prime has exactly two divisors, 1 and itself, so 1 is neither prime nor composite.
How reliable is the result for huge numbers?
Below about 3.3 × 10²⁴ the Miller–Rabin test used here is exact. Above that it is probabilistic, but a wrong answer is astronomically unlikely.
Why is a factor sometimes left unsplit?
Factoring very large numbers is hard. If a factor can't be split within a short time limit, it is shown as a remaining composite factor.