Given a number n the task is to print the minimum number which is divisible by all numbers from 1 to n.
In first line input a number T denoting the number of Test cases and in the next line input a number N.
Output in a single line denoting the number which is divisible by all numbers from 1 to N.
1 <= T <= 104
1 <= N <= 30
Testcase 1: When n=3 then the minimum number that nis divisible all the number till 3 is 6.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.