判断质数
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
输入一个不小于 的正整数,如果是质数,就输出 ,如果不是,就输出 ,
输入格式
如题所述。
输出格式
如题所述。
样例 #1
样例输入 #1
3
样例输出 #1
Y
提示
只能被 和 自身 整除的数被称作为质数。
随堂小测
- Status
- Done
- Rule
- IOI
- Problem
- 5
- Start at
- 2025-11-8 8:45
- End at
- 2025-12-8 8:45
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 29