#C. C++-函数-两个相差为2的素数称为素数对,如:5和7,17和19等,要求找出所有两个数均为不大于n的素数对

    Type: Default 1000ms 256MiB

C++-函数-两个相差为2的素数称为素数对,如:5和7,17和19等,要求找出所有两个数均为不大于n的素数对

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++-函数-两个相差为2的素数称为素数对,如:5和7,17和19等,要求找出所有两个数均为不大于n的素数对 image

Format

Input

Output

Samples

200
3 5
5 7
11 13
17 19
29 31
41 43
59 61
71 73
101 103
107 109
137 139
149 151
179 181
191 193
197 199

Limitation

1s, 1024KiB for each test case.

函数

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
10
Start at
2024-4-30 0:00
End at
2024-5-15 0:00
Duration
360 hour(s)
Host
Partic.
6