Is 4 a Prime Number?

NO — COMPOSITE NUMBER

No, 4 is not a prime number. It is a composite number divisible by 2 (4 = 2 × 2), with prime factorization 2².

Prime Factorization
2²
Positive Divisors
3
Previous Prime
Next Prime

Step-by-Step Proof: Why 4 Is Not Prime

  1. 1

    Compute the square-root bound: ⌊√4⌋ = 2. If 4 is composite, at least one prime ≤ 2 must divide it.

  2. 2

    Testing primes in ascending order immediately finds a witness divisor: 4 ÷ 2 = 2 with remainder 0.

  3. 3

    Since 2 divides 4 evenly (1 < 2 < 4), 4 has more than two positive divisors (3 in total) and its complete prime factorization is 4 = 2².

Prime Factorization & All Factors of 4

Open 4 in Visual Factor Tree →

4 has 3 positive divisors with divisor sum σ(4) = 7 and aliquot sum s(4) = 3 (Deficient number).

1 2 4

Division Ladder

1. 4 ÷ 2 = 2
2. 2 ÷ 2 = 1

Mathematical Properties & Number Bases of 4

Semiprime Perfect Square (2²)
Parity
Even
Aliquot Class
Deficient number
Twin Prime
No
Binary (Base 2)
100
Octal (Base 8)
4
Hexadecimal (Base 16)
0x4

Test Another Number Instantly

Enter any integer (including 100+ digit BigInt numbers) to test primality in our full Prime Number Checker.

Frequently Asked Questions About 4

Is 4 a prime number or a composite number?

No, 4 is not a prime number. It is a composite number divisible by 2 (4 = 2 × 2), with prime factorization 2².

What are all the positive factors (divisors) of 4?

The 3 positive divisors of 4 are: 1, 2, 4. Their sum is σ(4) = 7.

What is the prime factorization of 4?

The prime factorization of 4 is 2² (2^2).

What are the closest prime numbers before and after 4?

The previous prime before 4 is 3, and the next prime after 4 is 5.

← Previous curated number: 3 Next curated number: 5 →

Prime Number Tools & Reference Guides

Explore dedicated charts, visual factor trees, range generators, and step-by-step proofs for commonly searched numbers.