Prime and Composite Numbers
7 min read · Updated September 26, 2026 · by the SolveCalcPro editorial team

A prime number has exactly two factors: 1 and itself. A composite number has more than two. The number 1 is neither. Primes are the building blocks of all whole numbers, and they have fascinated mathematicians for over two thousand years.
The first primes
The primes up to 50 are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43 and 47, which is 15 in all. 2 is the only even prime. Every other even number has 2 as a factor.
Testing whether a number is prime
Try dividing by primes up to the square root of the number. To test 97: √97 is just under 10, so test 2, 3, 5 and 7. None divides 97, so it is prime. To test 91: 91 ÷ 7 = 13, so it is composite. The prime number checker does this instantly, even for very large values.
The sieve of Eratosthenes
To list primes up to 50: write the numbers 2 to 50, circle 2 and cross out its multiples, circle the next uncrossed number (3) and cross out its multiples, and repeat. The circled numbers are the primes. You only need to sieve with primes up to √50 ≈ 7.
Prime factorization
Every composite number is a product of primes in exactly one way. 84 = 2 × 42 = 2 × 2 × 21 = 2² × 3 × 7. Try any number in the prime factorization calculator.
Famous facts
There are infinitely many primes (Euclid). Pairs like 11 and 13 are called twin primes. Goldbach’s conjecture, that every even number above 2 is a sum of two primes, has been checked for huge numbers but is still unproven. The largest known primes have millions of digits and are found by computers.
Practice questions
Test yourself, then tap to check. Answers are calculated by the tools linked below.
- Is 221 prime?
Show answer
Is 221 prime?: No, composite
- Factor 252 into primes.
Show answer
Prime factorization: 2^2 × 3^2 × 7
- List the factors of 48.
Show answer
Factors of 48: 1, 2, 3, 4, 6, 8, 12, 16, 24, 48
Frequently asked questions
Is 1 a prime number?
No. It has only one factor.
Is 2 prime?
Yes, and it is the only even prime.
What is a composite number?
A whole number greater than 1 with more than two factors.
Why are primes important?
They are the basis of factorization, and modern encryption relies on how hard it is to factor very large numbers.
Try it yourself
Keep learning
Written and reviewed by the SolveCalcPro editorial team. Spot a mistake? Tell us. See our editorial policy.