DWITE Online Computer Programming Contest, October 2007, Problem 1
In mathematics, a prime number is a natural number which has exactly two distinct natural number divisors:
The input will contain a single integer.
The output will contain a single line, stating if the supplied integer is prime
or not
.
Sample Input 1
Copy
-1
Sample Output 1
Copy
not
Sample Input 2
Copy
1
Sample Output 2
Copy
not
Sample Input 3
Copy
2
Sample Output 3
Copy
prime
Problem Resource: DWITE
Comments