This can be solved by logic. You do not need to compute any factorials.
For an explanation, refer to:
The solution submitted by Charlie in this location.
The solution submitted by Larry in this location.
blackjack
flooble's webmaster puzzle