Trailing zeros of 100!

Robin Koch robin.koch at t-online.de
Sat Jan 2 11:56:44 EST 2016


Am 02.01.2016 um 17:09 schrieb Tony van der Hoff:
> On 02/01/16 16:57, Robin Koch wrote:
>> sum([int(0.2**k*n) for k in range(1, int(log(n, 5))+1)])
>
> But did you actually test it?

Yes, should work for n >= 1.

Why do you ask?

-- 
Robin Koch





More information about the Python-list mailing list