BETA

Difficulty Level:

Medium

Total Submissions: 125 Accuracy:

20%

A Game of LCM
     

You are given an integer N. You have to find 4 integers i,j,k,l less than equal to N such that lcm(i,j,k,l) is maximum.

Input:
First Line of input contains the number of test cases. Each line of the test case contains a single integer N.

Output:
Print the maximum lcm found.

Constraints:

1<=T<=5*10^4

4<=N<=5*10^4

Example:
Input:
2
4
5

Output:

12
60

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

Contributor: jain_rishabh

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.