Skip to main content
Mathematics & Percentages

Prime Number Checker

Check whether a number up to 10^18 is prime, with its smallest factor and the next and previous primes.

Your inputs

Results

Is it prime?

Yes — prime

Next prime
1000033
Previous prime
999983

✓Exact calculation — rounded only for display

Notes for this result

  • Uses a deterministic Miller–Rabin test that is exact for every number up to 3.3 × 10^24.