Is 255 a prime number?

No, 255 is not a prime number. It is a composite number: it ends in 5, so it is divisible by 5.

Why 255 is not prime

255 has divisors other than 1 and itself. The smallest is 3: 255 ÷ 3 = 85.

Prime factorization: 255 = 3 × 5 × 17.

Quick facts about 255

Is it prime? Nearby numbers

NumberPrime?
251Yes
252No, 2 × 2 × 3 × 3 × 7
253No, 11 × 23
254No, 2 × 127
256No, 2 × 2 × 2 × 2 × 2 × 2 × 2 × 2
257Yes
258No, 2 × 3 × 43
259No, 7 × 37

More about 255: 255 in binary.

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