-->
当前位置:首页 > 题库

PROGRAMMING:Judge prime

Luz5年前 (2021-05-10)题库459
The goal of this problem is very simple, is to determine whether a given positive integer is prime.
###Input format:
Enter a positive integer 'n' ($$Le $$10) in the first line, and then give a positive integer less than $$2 ^ {31} $$in the next 'n' line.
###Output format:
For each positive integer to be judged, if it is a prime, output 'yes' in one line, otherwise output' no '.
###Input example:
```in
two
eleven
one hundred and eleven
```
###Output example:
```out
Yes
No
```






answer:If there is no answer, please comment