How do I calculate the number of zeroes in N! * M!? (N factorial * M factorial)? Given integer N where 1<=N<=5000000 I want to find how many prime numbers are needed to make Ni.e how many numbers are needed to prime factorialize N?