Is 21 a Prime Number?
No — 21 is a composite number: 21 = 3 × 7. It has 4 factors (1, 3, 7, 21), more than the two a prime needs. Its smallest prime factor is 3.
Is 21 prime?No — composite
Previous prime19
Next prime23
Prime factorization3 × 7
Step by step
- Smallest divisor: 3 (21 ÷ 3 = 7).
- So 21 is composite: 21 = 3 × 7
The √21 test
To check 21, divide it by each prime up to √21 ≈ 4.58. If none goes in evenly, the number is prime.
| Test | Result | Verdict |
|---|---|---|
| 21 ÷ 2 | remainder 1 | ✗ not a factor |
| 21 ÷ 3 | no remainder | ✓ factor — so 21 is composite |
Nearby primes
Previous prime: 19. Next prime: 23.
Full details: factors of 21 · all primes up to 1,000.
Is 21 prime: questions
Is 21 a prime number?
No — 21 is a composite number: 21 = 3 × 7.
What are the factors of 21?
1, 3, 7, 21.
What is the next prime after 21?
23.