Here's something I just thought of:
One of the key tricks we're taking advantage of is by only keeping track of the last 5 digits for multiplication. Even with 1 trillion factorial we're going to...
Type: Posts; User: helloworld922
Here's something I just thought of:
One of the key tricks we're taking advantage of is by only keeping track of the last 5 digits for multiplication. Even with 1 trillion factorial we're going to...
Hmm, after close examination of your code you're right they are very similar. The only difference is that you use De Polignac's Formula which is faster, but you failed to properly handle the...
Hmm, interesting problem...
So you want to find the last 5 digits of n! after all the trailing zeros?
The first thing to do is eliminate all the trailing zero.
Each trailing zero equates to a...