Is 587 a Prime Number

YES
587 is a prime number.
587 is not a composite number.

Reason

587 only has 1 and itself 2 factors

Check Numbers related to 587