Is 123 a prime number?

No, 123 is not a prime number. It is a composite number: its digits add up to 6, which is divisible by 3, so 123 is divisible by 3.

Why 123 is not prime

123 has divisors other than 1 and itself. The smallest is 3: 123 ÷ 3 = 41.

Prime factorization: 123 = 3 × 41.

Quick facts about 123

Is it prime? Nearby numbers

NumberPrime?
119No, 7 × 17
120No, 2 × 2 × 2 × 3 × 5
121No, 11 × 11
122No, 2 × 61
124No, 2 × 2 × 31
125No, 5 × 5 × 5
126No, 2 × 3 × 3 × 7
127Yes

More about 123: factors of 123 · 123 squared · square root of 123 · 123 in binary · 123 in Roman numerals.

Another number? Use the prime number checker for any value, or see the list of prime numbers.