DWITE Online Computer Programming Contest, December 2007, Problem 1
Tony is busy writing his University exams, and lacks creativity. So he's making you write what you've already done in the last DWITE round, but differently. Instead of semiprimes, this time you're interested in numbers with
The input will contain five integers, one per line.
The output will contain five lines, stating if the supplied integers were valid
or not
.
Note: you're looking for unique factors. For example,
Sample Input
Copy
10
12
15
30
105
Sample Output
Copy
not
not
not
valid
valid
Problem Resource: DWITE
Comments