- You've to check whether a given number is prime or not.
- Take a number "t" as input representing count of input numbers to be tested.
- Take a number "n" as input "t" number of times.
- For each input value of n, print "prime" if the number is prime and "not prime" otherwise.
Sample Input:
5
13
2
3
4
5
Sample Output:
prime
prime
prime
not prime
prime
Constraints:
1 <= t <= 10000
2 <= n < 10^9