Is 18 a prime number?

Prime Number Checker
Number

Is 18 a prime or composite number?

Answer

Number 18 is not a Prime

18 = 2 × 3²

18 has 6 divisors — 1, 2, 3, 6, 9 and 18; a prime has exactly two: 1 and itself.

Primes up to √18

4² = 16 ≤ 18 < 25 = 5², so it is enough to try primes up to 4

  • ÷2 divides

18 ÷ 2 = 9 — 2 divides 18, so 18 is composite

See Also

FAQ

Is 18 a prime or composite number?

Number 18 is not a Prime

How many factors are in a number 18?

6

How to check if 18 is prime?

Divide 18 by the primes in order: 4² = 16 ≤ 18 < 25 = 5², so it is enough to try primes up to 4. The first one that divides it is 2: 18 ÷ 2 = 9, so 18 is composite.