#E. C++-循环for-输入一个正整数,判断是不是质数

    Type: Default 1000ms 256MiB

C++-循环for-输入一个正整数,判断是不是质数

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.

Background

Description

C++-循环for-输入一个正整数,判断是不是质数

Format

Input

Output

Samples

139
质数
10
合数
1
error,请输入大于或等于2的正整数

Limitation

1s, 1024KiB for each test case.

C++基础知识02(循环-for和while及嵌套)

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
18
Start at
2024-5-5 0:00
End at
2024-5-25 20:00
Duration
500 hour(s)
Host
Partic.
28