Friday, February 1, 2019

URI 1165:: SOLUTION

URI Online Judge | 1165

Prime Number

A Prime Number is a number that is divisible only by 1 (one) and by itself. For example the number 7 is Prime, because it can be divided only by 1 and by 7.

Input

The input contains several test cases. The first contains the number of test cases (1 ≤ N ≤ 100). Each one of the following N lines contains an integer X (1 < X ≤ 107), that can be or not a prime number.

Output

For each test case print the message “eh primo” (is prime) or “nao eh primo” (X isn't prime) according with to above specification.
Input SampleOutput Sample
3
8
51
7
8 nao eh primo
51 nao eh primo
7 eh primo



[WAIT]
     First of all, think yourself that you have tried enough for the problem. If you did not please read the program once. REMEMBER one thing, just believe in yourself.....YOU CAN.....YOU KNOW....


See the ANSWER here....
                                                          

No comments:

Post a Comment