#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.

C++基础知识05(函数)

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
9
Start at
2024-5-5 17:00
End at
2024-5-27 9:00
Duration
520 hour(s)
Host
Partic.
14