Prime Number Calculator
Enter a whole number to check whether it's a prime number.
How It Works
A number is prime if it's greater than 1 and has no divisors other than 1 and itself. The calculator checks divisibility up to the square root of the number.
Example
17 is prime; 18 is not, since it's divisible by 2, 3, 6 and 9.
Frequently Asked Questions
- Is 1 a prime number?
- No, by definition prime numbers must be greater than 1.
Related Calculators
- Cube Root CalculatorCalculate the cube root of any number, including negative numbers.
- Exponent CalculatorCalculate a base number raised to any exponent.
- Factorial CalculatorCalculate the factorial of a non-negative whole number.
- GCD CalculatorCalculate the greatest common divisor (GCD) of two numbers.
- LCM CalculatorCalculate the least common multiple (LCM) of two numbers.
- Log CalculatorCalculate the logarithm of a number for any base.