2520 is the smallest number that can be divided by each of the numbers from to without any remainder. What is the smallest positive number that is evenly divisible(divisible with no remainder) by all of the numbers from to ?
First line contains that denotes the number of test cases. This is followed by lines, each containing an integer, .
Print the required answer for each test case.
Sample Input 0
2 3 10
Sample Output 0
You can check is divisible by each of , giving quotient of respectively.
You can check is divisible by each of giving quotient of respectively.