Is 6791 a Prime Number

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

Reason

6791 only has 1 and itself 2 factors

Check Numbers related to 6791