Antiprime numbers
POI VIII Stage 1 Problem 3Antiprime numbersA positive integer n is an antiprime number, when it has more divisors than any positive integer, that is less than n. These are examples of antiprime numbers: 1, 2, 4, 6, 12 and 24. TaskWrite a program which:
InputIn the only line of the input file ANT.IN there is one integer n, 1 <= n <= 2 000 000 000. OutputIn the only line of the output file ANT.OUT your program should write exactly one integer - the greatest antiprime number not greater than n. Sample Input1000 Sample Output840SubmitStatistics |