A prime number is a positive integer having exactly two factors. If p is a prime, then it’s only factors are necessarily 1 and p itself. Any number which does not follow this is termed as composite numbers, which means that they can be factored into other positive integers.
87- Is it Prime?
The number 87 is not a prime number.
To be a prime number it must have only two factors that is 1 and the number itself. But here 87 has other factors as well.
Factors of 87 are: 1, 3 , 29 and 87.
Hence 87 is not a prime number.