Problem1380--质数函数-数对

1380: 质数函数-数对

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 250  Solved: 197
[Status] [Submit] [Creator:]

Description

把相差为2的两个数组成一组,比如(1,3),(2,4)
请找出1-n以内的所有符合条件的数对.
从小到大输出,前一个数小于后一个数.

Input

一个正整数n(3<=n<=100)

Output

所有小于等于n的数对。每个数对输出一行,中间用单个空格隔开。并保证每行的第一个数较小。

Sample Input Copy

6

Sample Output Copy

1 3
2 4
3 5
4 6

Source/Category

 基础A