Is 126 a prime number?

Prime Number Checker
Number

Is 126 a prime or composite number?

Answer

Number 126 is not a Prime

126 = 2 × 3² × 7

126 has 12 divisors, not two: a prime is divisible only by 1 and itself.

Primes up to √126

11² = 121 ≤ 126 < 144 = 12², so it is enough to try primes up to 11

  • ÷2 divides

126 ÷ 2 = 63 — 2 divides 126, so 126 is composite

See Also

FAQ

Is 126 a prime or composite number?

Number 126 is not a Prime

How many factors are in a number 126?

12

How to check if 126 is prime?

Divide 126 by the primes in order: 11² = 121 ≤ 126 < 144 = 12², so it is enough to try primes up to 11. The first one that divides it is 2: 126 ÷ 2 = 63, so 126 is composite.