P_Valuation

For an integer n and a rational prime number p, P_Valuation(n, p) returns the value of the p-valuation of n. For example,
gap> P_Valuation(12, 2);
2