#3056. C++-循环for-输入n和m(1<=n<=m<=10000,正整数),输出n~m的所有质数
C++-循环for-输入n和m(1<=n<=m<=10000,正整数),输出n~m的所有质数
Background
Description
输入n和m(1<=n<=m<=10000,正整数),输出n ~ m的所有质数
Format
Input
Output
Samples
1
10
2
3
5
7
10
20
11
13
17
19
1
100
2
3
5
7
11
13
17
19
23
29
31
37
41
43
47
53
59
61
67
71
73
79
83
89
97
Limitation
1s, 1024KiB for each test case.