truncated factorial to avoid stack overflow for huge values
truncfactorial(x)
x
a non-negative integer number
truncfactorial(x), truncated factorial as min(x!,171!)
truncfactorial(10)