Check whether a number is prime, and see the nearest primes. Enter a whole number.
Usage Tip
To test a small number, you only need to check division by primes up to its square root.
Tested by trial division up to the square root
Composite numbers have at least one divisor besides 1 and themselves.
1 is neither prime nor composite by definition.
The next and previous primes are shown for context.
