#arc114a. [arc114_a]Not coprime
[arc114_a]Not coprime
Problem Statement
Given are integers between and (inclusive): . Find the minimum positive integer that satisfies the following for every :
- and are not coprime.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the minimum positive integer that satisfies the condition.
Sample Input 1
2
4 3
Sample Output 1
6
Being not coprime with requires being even, and being not coprime with requires being a multiple of .
Sample Input 2
1
47
Sample Output 2
47
Sample Input 3
7
3 4 6 7 8 9 10
Sample Output 3
42