Non-Prime Number
InterviewTime limit0.5sMemory limit1024 MB
Given N, print any integer at least N that is not prime. The answer must be at most 10^9.
- Level
Easy2 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
Problem
One of the organizers of this contest, a KSA student, cannot tell 17 o'clock apart from 19 o'clock. This is because 17 and 19 are both prime. To tell the hours apart and protect KSA's reputation, read an integer and find any integer that is at least and is not prime.
Input
The first line contains an integer .
Output
Print the answer. The answer must be at most .
If multiple answers exist, printing any of them is accepted.