Is 2 a Prime Number?

YES — PRIME NUMBER

Yes, 2 is a prime number. Its only positive divisors are 1 and 2 (making it the 1st prime number).

Prime Factorization
2
Positive Divisors
2
Previous Prime
None
Next Prime

Why 2 Is Mathematically Notable

2 is the smallest prime number and the ONLY even prime number in mathematics. Every other even integer greater than 2 is divisible by 2 and therefore composite. It is also the base of the binary numeral system used across all digital computing.

Step-by-Step Proof: Why 2 Is Prime

  1. 1

    Check the definition: 2 is an integer strictly greater than 1.

  2. 2

    List all positive integers ≤ 2: only 1 and 2 divide 2 evenly (2 ÷ 1 = 2, 2 ÷ 2 = 1).

  3. 3

    Therefore, 2 has exactly two distinct positive divisors and is the smallest (and only even) prime number.

Prime Factorization & All Factors of 2

Open 2 in Visual Factor Tree →

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

1 2

Mathematical Properties & Number Bases of 2

Sophie Germain Prime Fibonacci Number
Parity
Even
Aliquot Class
Deficient number
Twin Prime
No
Binary (Base 2)
10
Octal (Base 8)
2
Hexadecimal (Base 16)
0x2

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 2

Is 2 a prime number or a composite number?

Yes, 2 is a prime number. Its only positive divisors are 1 and 2 (making it the 1st prime number).

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

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

What is the prime factorization of 2?

Because 2 is already prime, its prime factorization is simply 2.

What are the closest prime numbers before and after 2?

The previous prime before 2 is none (2 is the smallest prime), and the next prime after 2 is 3.

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

Prime Number Tools & Reference Guides

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