Consecutive is unpredictable (Part 4)

In decimal representation, find the sum of the first 6 (leftmost) digits of 1000 ! 1000! .

You are only allowed to use:

  • A scientific calculator to calculate the value of 1 0 x 10^x and log 10 x \log_{10} x only.


The answer is 24.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

1
2
import math
print sum(map(int, str(math.factorial(1000))[:6]))

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...