Is 21 a prime number?

Prime Number Checker
Number

Is 21 a prime or composite number?

Answer

Number 21 is not a Prime

21 = 3 × 7

21 has 4 divisors — 1, 3, 7 and 21; a prime has exactly two: 1 and itself.

Primes up to √21

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

  • ÷2 does not divide
  • ÷3 divides

21 ÷ 3 = 7 — 3 divides 21, so 21 is composite

See Also

FAQ

Is 21 a prime or composite number?

Number 21 is not a Prime

How many factors are in a number 21?

4

How to check if 21 is prime?

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