At the input of the program, there is a natural number n. Among the natural numbers greater than n that are not divisible by 2, 3, or 5, find the smallest one.
A natural number n.
The answer to the problem.
Example 1