注册
登录
帮助
首页
题库
运行状态
比赛
用户
题解系统
QQ群: 181873520
[F] Find the Prime Number
时间限制: 1000 ms 内存限制: 65535 K
问题描述
This is a simple problem. Give you a number N. You should tell me it is not a prime number.
输入
This problem has several cases.
For each case just contain one integer N (N <= 5000000).
When the N is a non-postive number end of the input.
输出
If the number is a prime number print "Yes", otherwise print "No"
样例输入
2 3 4 5 0
样例输出
Yes Yes No Yes
提示
无
来源
Monkeyde17
操作
题目 Problems
A - Ancient String
[0 / 1 (0.00%)]
B - Bad O2Jam
[0 / 14 (0.00%)]
C - Creating Palindrome
[14 / 78 (17.95%)]
D - Double and Ana
[1 / 60 (1.67%)]
E - Elective Course
[5 / 25 (20.00%)]
Ex - Execute HVM
[0 / 0 (0.00%)]
F - Find the Prime Number
[27 / 207 (13.04%)]
G - Get Mine Cleared
[0 / 56 (0.00%)]
H - Hero May Die But the King Will Never
[0 / 7 (0.00%)]
I - Infrared Rays System
[3 / 42 (7.14%)]
状态 Status
统计 Statistics
排名 Rank
报名参赛 SIGN UP
显示春菜