Is 87 a Prime Number?
Updated · exact integer math
No, 87 is not a prime number. It's composite.
87 = 3 × 29
Why 87 is not prime
Its digits add up to 15, which is divisible by 3, so 87 is too: 87 ÷ 3 = 29.
Its prime factorization is 3 × 29, and it has 4 divisors: 1, 3, 29, 87.
The nearest primes are 83 (below) and 89 (above).
Numbers around 87
| Number | Prime? | Factorization |
|---|---|---|
| 82 | Composite | 2 × 41 |
| 83 | Prime | 83 |
| 84 | Composite | 2² × 3 × 7 |
| 85 | Composite | 5 × 17 |
| 86 | Composite | 2 × 43 |
| 87 | Composite | 3 × 29 |
| 88 | Composite | 2³ × 11 |
| 89 | Prime | 89 |
| 90 | Composite | 2 × 3² × 5 |
| 91 | Composite | 7 × 13 |
| 92 | Composite | 2² × 23 |
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 89 prime?
Yes, prime
Number of divisors
2
Previous prime
83
Next prime
97
Divisors: 1, 89
Its only divisors are 1 and 89, so it's prime.
See where 87 sits among the first hundred numbers on the prime numbers chart, or browse every number from 1 to 1,000.
Questions people ask
Is 87 a prime number?
No, 87 is not a prime number. It's composite.
What are the factors of 87?
4 factors: 1, 3, 29, 87.
Is 87 prime or composite?
Composite: 87 = 3 × 29.