SP8456 PROBLEM4 - PRIMITIVEROOTS
Description
N/A
Input Format
The first line consists of T the number of test cases followed by T lines. Each line consists of a prime number n.
Output Format
For each test case print the test case number followed by ‘`:`’ followed by (product of all primitive roots of n) % n. If it is not a prime then print “`NOTPRIME`”