在 线 评 测 系 统
Toggle navigation
HNUAHE-OJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem A: 素数判断
Problem A: 素数判断
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MiB
Submit
ProblemList
Solved: 175
Submit Num: 326
Statistics
ShowOff!
Description
输入一个整数,判断该数是否为素数。
Input
输入有多行,每行包含一个整数。
Output
输出有多行,每行有一个字符“1”或“0”,若对应的输入为素数则输出1,否则输出0.
Sample Input
Copy
137 8
Sample Output
Copy
1 0