Prime Number Calculator
Test a whole number for primality and meet its neighbouring primes.
A whole number from 1 to 1 000 000 000 000
Try
Result
You entered
Next prime
Previous prime
Show the work
Test divisors up to the square root
If had a factor larger than its square root, it would be paired with a smaller one, so it is enough to test the primes up to it, , , and . None of them divides exactly.
Result
So is prime: its only factors are and .