What Are Prime Numbers?
Prime numbers have exactly two divisors: 1 and themselves. The first primes are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29... Primes are the building blocks of all integers.
Check primality, factorize, find next/previous prime, or list primes.
Input the number to check or use as starting point.
For prime lists, enter the end of range.
See if prime, factors, or prime list with steps.
A prime number has exactly two distinct positive divisors: 1 and itself. Testing divisibility up to √n is sufficient because factors come in pairs.
n is prime if its only divisors are 1 and n
2 is the only even prime number - all other even numbers are divisible by 2
1 is neither prime nor composite by definition
To check if n is prime, only test divisibility up to √n
Twin primes are pairs differing by 2: (3,5), (5,7), (11,13), (17,19)...
All primes > 3 are of form 6k±1 (but not all 6k±1 are prime)
Prime factorization is unique for every number (Fundamental Theorem of Arithmetic)
Check if a number is prime, find prime factors, generate prime lists, and discover next/previous primes. See step-by-step primality tests.
Prime numbers have exactly two divisors: 1 and themselves. The first primes are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29... Primes are the building blocks of all integers.
Every integer > 1 can be uniquely expressed as a product of primes. For example, 60 = 2² × 3 × 5. This is fundamental in mathematics and cryptography.