Problem B

Statement
Copy Copied
Primality Check
Input: integer n.
Output: YES if n is prime, otherwise NO.