def factorial(n: Int) = (2 to n).product