I've been doing some work with factorials and the normal way of calculating them is simply not working so well. When the numbers get really big, doing iterative multiplications is not viable and gets very memory and processor consuming.
I was wondering, what is the least computationally exhausting way of calculating the factorial of any given number?