Prime Number Checker: Is It Prime?
Enter a whole number to find out if it is prime. You also get its prime factors and the nearest prime numbers.
Last updated: 24 November 2026
How it works
What is a prime number?
A prime number is a whole number greater than 1 that has exactly two factors: 1 and itself. The number 2 is the only even prime, because every other even number is also divisible by 2. The number 1 is neither prime nor composite, because it has only one factor.
Prime vs composite numbers
A composite number is a whole number greater than 1 that is not prime, so it has more than two factors. For example, 7 is prime — its only factors are 1 and 7. The number 9 is composite, because 9 = 3 × 3, and 15 is composite too, because 15 = 3 × 5. This prime or composite number checker tells you which one any number is, and shows the prime factors when it is composite.
The first primes are 2, 3, 5, 7, 11, 13, 17, 19, 23 and 29. To check a prime number quickly, type it into the checker above: the tool tests divisibility up to the square root of your number, which is fast and exact.
Frequently asked questions
Is 1 a prime number?
No. A prime must have exactly two factors, and 1 has only one.
Is 2 a prime number?
Yes, and it is the only even prime number.
How do I check if a number is prime?
Try dividing it by every prime up to its square root. If none divides it exactly, it is prime. To check a number is prime quickly, type it into the checker above.
Is 7 a prime number?
Yes. 7 has only two factors, 1 and 7, so it is prime.
Is this a prime number?
Type the number above and the checker tells you at once whether it is prime, and shows its prime factors if it is not.
What is the easiest way to determine if a number is prime?
Type it into the checker above. It tests divisibility up to the square root and tells you at once, with the prime factors if it is not prime.
Is this also a prime number calculator?
Yes — this page works as a prime number calculator and prime number tester: it checks whether a number is prime and shows its prime factors.
Is this a prime checker?
Yes. Type any whole number and this prime checker tells you at once whether it is prime, shows its prime factors if it is not, and gives the previous and next prime.
How many prime numbers are there between 1 and 100?
There are 25 primes below 100.
What is a prime or composite number?
A prime number is a whole number greater than 1 with exactly two factors, 1 and itself. A composite number is a whole number greater than 1 that is not prime, so it has more than two factors — for example 9 = 3 × 3.
More free tools
- HCF & LCM CalculatorHighest common factor and least common multiple of numbers.
- Square Root CalculatorSquare root, cube root, square and cube of any number.
- Random Number GeneratorPick random numbers in any range, with or without repeats.
- Fraction CalculatorAdd, subtract, multiply and divide fractions, simplified.
All free tools
Math Calculators
- Scientific Calculator
- Percentage Calculator
- Quadratic Equation Solver
- Average Calculator
- HCF & LCM Calculator
- Prime Number Checker
- Square Root Calculator
- Speed, Distance & Time Calculator
- Fraction Calculator
- Ratio Calculator
- Standard Deviation Calculator
- Pythagorean Theorem Calculator
- Area Calculator
- Percent Error Calculator
- Online Calculator
- Plot Area Calculator