fork download
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
public class Solution {

    static void Main(String[] args) {
        int t = Convert.ToInt32(Console.ReadLine());
        for(int a0 = 0; a0 < t; a0++){
            int n = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine(SmallestNumber(n));
        }
    }
    static int SmallestNumber(int n)
    {
        var m=1;
        while(true)
        {
            if(Divisible(n,m))
                return m;
            
            m++;
        }
    }
    static bool Divisible(int n,int m)
    {
        for(int i=1; i<=n;i++)
        {
            if(m%i!=0)
            {
                return false;
            }
        }
        return true;
    }
}
Success #stdin #stdout 4.6s 24596KB
stdin
1
20
stdout
232792560