plduhoux
2/20/2018 - 6:23 PM

leastFactorial

int leastFactorial(int n) {
    int k = 1;
    int i = 2;
    while (k < n) {
        k *= i++;
    }
    return k;
}