Home => ProblemSet => [POJ1811]Prime Test
Problem2276--[POJ1811]Prime Test

2276: [POJ1811]Prime Test

Time Limit: 6 Sec  Memory Limit: 128 MB  Submit: 0  Solved: 0
[ Submit ] [ Status ] [ Creator: ][ 参考程序 ]

Description

Given a big integer number, you are required to find out whether it's a prime number.

Input

The first line contains the number of test cases T (1 <= T <= 20 ), then the following T lines each contains an integer number N (2 <= N < 254).

Output

For each test case, if N is a prime number, output a line containing the word "Prime", otherwise, output a line containing the smallest prime factor of N.

Sample Input Copy

2
5
10

Sample Output Copy

Prime
2

Source/Category