#3059. 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
4
17
10
20
11
13
17
19
4
60
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
25
1060

Limitation

1s, 1024KiB for each test case.