human
Finding power of prime number p in n ! | Returns power of p in n !.
initializing answer.
initializing.
loop until temp <= n.
add number of numbers divisible by n.
each time multiply temp by p.
Driver Code"
Solution in Python:
 ... Write me a code to finding power of prime number p in n ! and the other steps required?
assistant
#Here is code to finding power of prime number p in n ! and the other steps required.
 def PowerOFPINnfactorial ( n , p ) :
	ans = 0
	temp = p
	while ( temp <= n ) :
		ans += n / temp
		temp = temp * p
	return int ( ans )
print ( PowerOFPINnfactorial ( 4 , 2 ) )