Prime Number Checker & Prime Factorization
Check whether a number is prime, see why, and break it into prime factors
Quick answer
Prime Number Checker & Prime Factorization
Type any whole number up to 1 trillion. The checker shows the trial divisions that prove the answer, the prime factorization (for example 360 = 2³ × 3² × 5), every factor, and the nearest primes.
Formula
A prime is a whole number greater than 1 whose only factors are 1 and itself
360 is not a prime number (composite)
360 = 2³ × 3² × 5, so it has 24 factors.
How we know
- If 360 has a factor other than 1 and itself, one of them must be no bigger than √360 ≈ 18.97. So we only need to test primes up to 18.
- Test each prime in turn: 360 ÷ 2 = 180 exactly.
- 2 divides 360 evenly, so 360 is not prime.
Prime factorization by repeated division
| Number | Divide by | Result |
|---|---|---|
| 360 | 2 | 180 |
| 180 | 2 | 90 |
| 90 | 2 | 45 |
| 45 | 3 | 15 |
| 15 | 3 | 5 |
| 5 | 5 | 1 |
Collect the divisors: 360 = 2³ × 3² × 5
Number of factors = (3 + 1) × (2 + 1) × (1 + 1) = 24
All factors of 360 (24)
Prime factors are highlighted in green.
Factor pairs: 1 × 360, 2 × 180, 3 × 120, 4 × 90, 5 × 72, 6 × 60, 8 × 45, 9 × 40, 10 × 36, 12 × 30, 15 × 24, 18 × 20
Previous prime
359
Next prime
367
🔢Formula
A prime is a whole number greater than 1 whose only factors are 1 and itself💡How it works
Type any whole number up to 1 trillion. The checker shows the trial divisions that prove the answer, the prime factorization (for example 360 = 2³ × 3² × 5), every factor, and the nearest primes.
Prime numbers up to 100
There are 25: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89 and 97.
Frequently asked questions
Is 1 a prime number?
No. A prime number has exactly two different factors, 1 and itself. The number 1 has only one factor, so it is neither prime nor composite.
Is 2 the only even prime number?
Yes. Every other even number can be divided by 2, so it has at least three factors (1, 2 and itself) and is composite.
Why only test divisors up to the square root?
If n = a × b and both a and b were bigger than √n, their product would be bigger than n. So any composite number has at least one factor no larger than its square root — if none is found by then, the number is prime.
How do I find the prime factorization of a number?
Divide by the smallest prime that goes in evenly (2, then 3, 5, 7 …), write it down, and repeat with the result until you reach 1. For 360: 360 ÷ 2 = 180, ÷ 2 = 90, ÷ 2 = 45, ÷ 3 = 15, ÷ 3 = 5, ÷ 5 = 1, so 360 = 2³ × 3² × 5.
How many factors does a number have?
Write the prime factorization, add 1 to each exponent and multiply. 360 = 2³ × 3² × 5¹ has (3 + 1)(2 + 1)(1 + 1) = 24 factors.
Related: fraction calculator (simplifying uses common factors), statistics calculator, scientific calculator.