Check whether a whole number is prime and break it down into its prime factors. Enter any number up to one trillion, and see its divisors and the nearest primes before and after it.
Last updated: November 15, 2026 · Written by the CalculatorGate team
√97 is about 9.8, so only the primes below 10 need to be tested:
| Primes to test | 2, 3, 5, 7 |
|---|---|
| Does any divide 97? | No |
| Result | 97 is prime |
| Previous prime | 89 |
| Next prime | 101 |
The building blocks of all numbers
A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. The first primes are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29...
2 is the only even prime: Every other even number is divisible by 2, making it composite. This makes 2 unique among primes.
How to check if a number is prime: Only check divisibility by primes up to the square root. To test 97: check 2, 3, 5, 7 (√97 ≈ 9.8). If none divide evenly, it's prime.
Infinitely many primes: Euclid proved around 300 BCE that there are infinitely many prime numbers. The largest known prime (as of 2024) has over 40 million digits.
Why primes matter: RSA encryption (securing online banking, email, HTTPS) relies on the fact that multiplying two large primes is easy, but factoring the result back into its prime components is computationally infeasible.
Find the prime factors of 360 and how many divisors it has.
Short answers to common questions
A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. Examples: 2, 3, 5, 7, 11, 13...
No, 1 is not a prime number. Prime numbers start from 2.
The smallest prime number is 2. It's also the only even prime number.
Writing a number as a product of prime numbers. Example: 12 = 2 × 2 × 3
No, by definition prime numbers are positive integers.
More tools for similar calculations
A whole number from 1 to 1,000,000,000,000.