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

PROGRAMMING:prime number again

Luz5年前 (2021-05-10)题库424
Enter a positive integer n to determine whether it is a prime.
###Input format:
There are several groups of test data, which are processed to the end of the file, and a number n (2 < = n < = 10000) is input each time.
###Output format:
If it is a prime number, output yes; if it is not a prime number, output No.
###Input example:
Here is a set of inputs. For example:
```in
two
three
eight
```
###Output example:
The corresponding output is given here. For example:
```out
YES
YES
NO
```







answer:If there is no answer, please comment