A ring is composed of n (even number) circles.
Put natural numbers 1, 2, ..., n into each circle separately, and the
sum of numbers in two adjacent circles should be a prime.
Note: The number in the first circle should always be 1.
Input:
6
Output:
1 4 3 2 5 6 1 6 5 2 3 4
Input:
8
Output:
1 2 3 8 5 6 7 4 1 2 5 8 3 4 7 6 1 4 7 6 5 8 3 2 1 6 7 4 3 8 5 2