Number Theory

Prime Number

A prime number is a whole number greater than 1 that has exactly two positive divisors: 1 and itself.

Meaning

What Is Prime Number?

A prime number is a whole number greater than 1 that has exactly two positive divisors: 1 and itself.

Examples

Examples of Prime Number

12
23
35
47
511
613
Understand

Formula and Key Points

Formula / rule
A prime p has exactly two positive factors: 1 and p.
  • 2 is the only even prime number.
  • 1 is not prime.
  • A composite number has more than two positive divisors.
  • Every integer greater than 1 can be built from prime factors.
CSE Connection

Why This Matters in Computer Science

Used in cryptography, hashing, coding theory, security protocols and efficient integer algorithms.

Step by Step

Worked Example

Problem

Is 29 a prime number?

  1. Check divisibility by primes up to √29, which is a little over 5.
  2. 29 is not divisible by 2.
  3. 29 is not divisible by 3.
  4. 29 is not divisible by 5.
  5. Therefore 29 has no positive divisors other than 1 and 29.
✓
Final AnswerYes, 29 is prime.
Try Your Own Problem in Math Solver →
Compare

Prime vs Composite Number

FeaturePrimeComposite
Positive divisorsExactly 2More than 2
Example1312
Smallest example24
FAQ

Prime Number: Frequently Asked Questions

Is 1 a prime number?

No. A prime must have exactly two positive divisors, but 1 has only one.

What is the smallest prime number?

2.

Is 2 prime?

Yes, and it is the only even prime number.