1326: 求n以内的所有孪生素数
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:14
Solved:8
Description
输出n以内的所有孪生质数(若一个整数n和n+2都为素数,则称它们两个为孪生素数)
输出 每对一行,两个质数中间空一格。
Input
n,
Output
n以内的所有孪生素数。
Sample Input Copy
20
Sample Output Copy
3 5
5 7
11 13
17 19