🔑 Prime Number Checker

Result

What is a Prime Number?

A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. Numbers with more than two factors are called composite numbers.

Examples of Prime Numbers

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97...

A number n is prime if it has exactly two factors: 1 and n itself.
2 is the only even prime number.

How to Check if a Number is Prime

  1. If n ≤ 1, it is not prime.
  2. If n = 2 or n = 3, it is prime.
  3. Check divisibility by all numbers from 2 to √n.
  4. If divisible by any, it is composite. Otherwise, it is prime.

Frequently Asked Questions

Is 1 a prime number?
No. By definition, prime numbers must have exactly two distinct factors: 1 and themselves. The number 1 has only one factor (itself), so it is neither prime nor composite.
Is 2 a prime number?
Yes! 2 is the only even prime number. It has exactly two factors: 1 and 2.
What are the first 10 prime numbers?
The first 10 prime numbers are: 2, 3, 5, 7, 11, 13, 17, 19, 23, and 29.