Is 987 a prime number?

Prime Number Checker
Number

Is 987 a prime or composite number?

Answer

Number 987 is not a Prime

987 = 3 × 7 × 47

987 has 8 divisors — 1, 3, 7, 21, 47, 141, 329 and 987; a prime has exactly two: 1 and itself.

Primes up to √987

31² = 961 ≤ 987 < 1,024 = 32², so it is enough to try primes up to 31

  • ÷2 does not divide
  • ÷3 divides

987 ÷ 3 = 329 — 3 divides 987, so 987 is composite

See Also

FAQ

Is 987 a prime or composite number?

Number 987 is not a Prime

How many factors are in a number 987?

8

How to check if 987 is prime?

Divide 987 by the primes in order: 31² = 961 ≤ 987 < 1,024 = 32², so it is enough to try primes up to 31. The first one that divides it is 3: 987 ÷ 3 = 329, so 987 is composite.