piko

Prime Number Checker

Check whether any whole number is prime, see its prime factorization, and find neighboring primes.

Runs on your device. Nothing you add is uploaded.

Positive integer (supports large integers too)
97 is
Prime
Prime factorization
97
Previous prime
89
Next prime
101
97 has no divisors other than 1 and 97.

How to use Prime Number Checker

  1. Enter any positive integer.
  2. See immediately whether it is prime or composite.
  3. Read its prime factorization and the nearest primes below and above it.

Questions

Why is 1 not a prime number?
Prime numbers must have exactly two distinct positive factors (1 and themselves). 1 only has one factor, and excluding 1 preserves unique prime factorization.
How are large numbers tested?
The checker uses deterministic Miller-Rabin primality witnesses, which test numbers up to 64+ bits in microseconds.

How this works

Runs BigInt Miller-Rabin primality testing and trial factorization locally.

Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. Your last settings are kept in this browser so the tool opens the way you left it. Privacy

Related tools

More in Calculators