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

PROGRAMMING:Prime square

Luz5年前 (2021-05-10)题库428
Given a number, judge whether it is prime. If it is prime, output yes and its square. If not, output No
###Input format:
The input contains multiple sets of data, one number per line, n
###Output format:
If n is a prime, output yes and its square. If n is not, output No
###Input example:
Here is a set of inputs. For example:
```in
two
four thousand four hundred and fifty-six
seven thousand one hundred and sixty-four
eight thousand three hundred and sixty-three
```
###Output example:
The corresponding output is given here. For example:
```out
YES 4
NO
NO
YES 69939769
```







answer:If there is no answer, please comment