Problems
A prime number is a number greater than or equal to 2 that has no divisors other than 1 and itself.
Write a program that, for a given number π, finds the prime number(s) closest to π according to the following conditions.
Input
The first line contains an integer
The next
All input values are guaranteed to be within the given ranges.
Output
For each input number
If multiple primes are equally close, print all of them in increasing order.
Each output prime number must be between 1 and 1,000,000 inclusive.
Example
2
8
15
7
13 17
Tag
Source
JUNGOL