Check whether an integer is prime, composite, or neither and see the divisor test behind the answer.
Enter your problem
Your entries are calculated in this browser and are not saved or sent to AblePro.
PRIMALITY—
Step-by-step work
How it works
A prime is an integer greater than 1 with exactly two positive factors: 1 and itself. A composite is an integer greater than 1 with additional factors. Numbers less than 2 are neither prime nor composite under this definition. Trial division tests 2 and then odd divisors only as far as the square root.
Example: Is 97 prime?
The whole-number part of √97 is 9. There is no divisor among 2 and the odd numbers 3, 5, 7, and 9. Therefore 97 is prime.