Is prime

Is prime. A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. Given an integer N greater than 1, print “PRIME” if it is a prime number, and print “COMPOSITE” otherwise.

Test Case Input (N) Expected Output
1 2 PRIME
2 4 COMPOSITE
3 17 PRIME