Is 9 a Prime Number?
Updated · exact integer math
No, 9 is not a prime number. It's composite.
9 = 3²
Why 9 is not prime
Its digits add up to 9, which is divisible by 3, so 9 is too: 9 ÷ 3 = 3.
Its prime factorization is 3², and it has 3 divisors: 1, 3, 9.
The nearest primes are 7 (below) and 11 (above).
Numbers around 9
| Number | Prime? | Factorization |
|---|---|---|
| 4 | Composite | 2² |
| 5 | Prime | 5 |
| 6 | Composite | 2 × 3 |
| 7 | Prime | 7 |
| 8 | Composite | 2³ |
| 9 | Composite | 3² |
| 10 | Composite | 2 × 5 |
| 11 | Prime | 11 |
| 12 | Composite | 2² × 3 |
| 13 | Prime | 13 |
| 14 | Composite | 2 × 7 |
Check another number
Any whole number up to 24 digits. Commas are fine.
Try 1,000,003 or 561. Want a list instead? See the list of prime numbers.
Is 11 prime?
Yes, prime
Number of divisors
2
Previous prime
7
Next prime
13
Divisors: 1, 11
Its only divisors are 1 and 11, so it's prime.
See where 9 sits among the first hundred numbers on the prime numbers chart, or browse every number from 1 to 1,000.
Questions people ask
Is 9 a prime number?
No, 9 is not a prime number. It's composite.
What are the factors of 9?
3 factors: 1, 3, 9.
Is 9 prime or composite?
Composite: 9 = 3².