Prime Check

EasyProblem #22
Time LimitMemoryInputOutput
1 s64 MBstdinstdout

A number is prime if it is greater than and has no divisors other than and itself. Your task is to check, for each given number, whether it is prime.

Input

First line of input will be a single integer - the number of testcases.
Each of the next lines contains a single integer .

Output

For every testcase print YES if is prime, and NO otherwise.

Example

Input
2
17
903543481
Output
YES
NO

has no divisors other than and . The second number looks like a prime for a very long time, but .

Constraints



This problem was adapted, with permission, from Prost broj, authored by Društvo matematičara Srbije and Fondacija Petlja.

Submit your solution