# your code goes here f=@(n)sum(fix(n./(5.^(1:fix(log(n)/1.6)))))f(1),f(5),f(100),f(666),f(2016),f(1234567891011121314151617181920),
Standard input is empty
f = @(n) sum (fix (n ./ (5 .^ 1:fix (log (n) / 1.6)))) ans = 0 ans = 1 ans = 24 ans = 165 ans = 502 ans = 3.0864e+29
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!