Contents
factorial_factor()
An implementation of Legendre’s formula to compute the largest power of p dividing n!.
The formula is:
n (int) – value of n whose factorial is to be checked.
int
p (int) – prime number.
the largest power of p that divides n!.