Prime Number Checker
Test a number, list its prime factors and find the neighbouring primes.
97
Prime
divisible only by 1 and itself
- Next prime
- 101
- Previous prime
- 89
- Prime factors
- 97
- Number of divisors
- 2
How the prime number checker calculation works
A prime has exactly two divisors: 1 and itself. The tool tests divisibility by numbers up to the square root of n, and factorises composites into primes, for example 360 = 2³ × 3² × 5.
How to use this calculator
- Whole number. Type a number.
- Read the result. It updates as you type, with a breakdown. Use Copy result to save it.
Worked example
With Whole number 97, the result is 97: Prime (divisible only by 1 and itself). The result also breaks down into: next prime; previous prime; prime factors; number of divisors.
Tips and common mistakes
A prime number has exactly two factors, 1 and itself.
- 1 is not prime and 2 is the only even prime.
- The tool also shows the prime factors of a number.
- Large numbers take longer to check.
Frequently asked questions
Is 1 a prime number?
No. A prime needs exactly two distinct divisors, and 1 has only one.
Is 2 prime?
Yes, and it is the only even prime.
How large a number can I test?
Up to 1,000,000,000,000, and the result still appears instantly.
Last reviewed 2026-10-30. Results are estimates for planning only. Read the disclaimer.