Is 4 a prime number?

Prime Number Checker
Number

Is 4 a prime or composite number?

Answer

Number 4 is not a Prime

4 = 2²

4 has 3 divisors — 1, 2 and 4; a prime has exactly two: 1 and itself. It is a perfect square.

Primes up to √4

2² = 4 ≤ 4 < 9 = 3², so it is enough to try primes up to 2

  • ÷2 divides

4 ÷ 2 = 2 — 2 divides 4, so 4 is composite

See Also

FAQ

Is 4 a prime or composite number?

Number 4 is not a Prime

How many factors are in a number 4?

3

How to check if 4 is prime?

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