Is 126 a Prime Number?
No — 126 is a composite number: 126 = 2 × 32 × 7. It has 12 factors (1, 2, 3, 6, 7, 9, 14, 18, 21, 42, 63, 126), more than the two a prime needs. Its smallest prime factor is 2.
Is 126 prime?No — composite
Previous prime113
Next prime127
Prime factorization2 × 32 × 7
Step by step
- Smallest divisor: 2 (126 ÷ 2 = 63).
- So 126 is composite: 126 = 2 × 32 × 7
The √126 test
To check 126, divide it by each prime up to √126 ≈ 11.22. If none goes in evenly, the number is prime.
| Test | Result | Verdict |
|---|---|---|
| 126 ÷ 2 | no remainder | ✓ factor — so 126 is composite |
Nearby primes
Previous prime: 113. Next prime: 127.
Full details: factors of 126 · all primes up to 1,000.
Is 126 prime: questions
Is 126 a prime number?
No — 126 is a composite number: 126 = 2 × 3^2 × 7.
What are the factors of 126?
1, 2, 3, 6, 7, 9, 14, 18, 21, 42, 63, 126.
What is the next prime after 126?
127.