Is 45 a Prime Number?
Updated · exact integer math
No, 45 is not a prime number. It's composite.
45 = 3² × 5
Why 45 is not prime
Its digits add up to 9, which is divisible by 3, so 45 is too: 45 ÷ 3 = 15.
Its prime factorization is 3² × 5, and it has 6 divisors: 1, 3, 5, 9, 15, 45.
The nearest primes are 43 (below) and 47 (above).
Numbers around 45
| Number | Prime? | Factorization |
|---|---|---|
| 40 | Composite | 2³ × 5 |
| 41 | Prime | 41 |
| 42 | Composite | 2 × 3 × 7 |
| 43 | Prime | 43 |
| 44 | Composite | 2² × 11 |
| 45 | Composite | 3² × 5 |
| 46 | Composite | 2 × 23 |
| 47 | Prime | 47 |
| 48 | Composite | 2⁴ × 3 |
| 49 | Composite | 7² |
| 50 | Composite | 2 × 5² |
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 47 prime?
Yes, prime
Number of divisors
2
Previous prime
43
Next prime
53
Divisors: 1, 47
Its only divisors are 1 and 47, so it's prime.
See where 45 sits among the first hundred numbers on the prime numbers chart, or browse every number from 1 to 1,000.
Questions people ask
Is 45 a prime number?
No, 45 is not a prime number. It's composite.
What are the factors of 45?
6 factors: 1, 3, 5, 9, 15, 45.
Is 45 prime or composite?
Composite: 45 = 3² × 5.