A. KKT函数601孪生素数

    Type: Default 1000ms 256MiB

KKT函数601孪生素数

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.

Description

在素数的大家庭中,大小之差为 2 的两个素数称之为一对“孪生素数”,如 3 和 5、17 和 19 等。请你编程统计出不大于自然数 n 的素数中,孪生素数的对数。

Input Format

一行一个正整数 n 。

Output Format

若干行,每行两个整数,之间用一个空格隔开,从小到大输出每一对孪生素数。

100
3 5
5 7
11 13
17 19
29 31
41 43
59 61
71 73

寒假集训_01_09

Not Attended
Status
Done
Rule
XCPC
Problem
6
Start at
2025-1-9 14:00
End at
2025-1-9 17:00
Duration
3 hour(s)
Host
Partic.
41