×

# Factorial

How many ZEROES (NOT trailing zeroes) are there at $$2015!$$?

Note by Bryan Lee Shi Yang
1 year, 11 months ago

Sort by:

This seems to be a number theory problem, but here's my python solution for this.

 1 2 3 from math import factorial print(str(factorial(2015)).count('0')) #Returns 1037, time taken=6ms 
· 1 year, 11 months ago

Wheyy....you know python too? I thought you used C++ for CS! · 1 year, 11 months ago

Yeah I learnt python about a month ago due to lack of required data types in C++. Also, I am posting solutions in python now-a-days. · 1 year, 11 months ago

Amazing. · 1 year, 11 months ago

Can I call this "Python Jugaad" :P ? · 1 year, 11 months ago

Lol sure · 1 year, 11 months ago

Haha maybe "Python Pranjal". · 1 year, 11 months ago