#P0124. Antiprime
Antiprime
Description
If a positive integer greater than or equal to satisfies that the divisor of all positive integers less than and greater than or equal to is less than the divisor of , then is an Antiprime.
For example: 1, 2, 4, 6, 12, 24, they are all antiprimes.
Please calculate the maximum antiprime number that is not greater than .
Format
Input
A line of positive integers .
Output
Contains only one integer, i.e. the largest antiprime number that is not greater than .
Samples
1000
830
Limitation