BETA

Difficulty Level: Easy

Submissions: 709 Accuracy:

21.44%

Number Game
     

Given a number n the task is to print the minimum number which is divisible by all numbers from 1 to n.

Input:
In first line input a number T denoting the number of Test cases and in the next line input a number N.

Output:
Output in a single line denoting the number which is divisible by all numbers from 1 to N.

Constraints:
1<=T<=1000
1<=N<=30

Example:
Input:
2
3
5
Output:
6
60

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Ayush Saluja

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.