human
Sum of each element raised to ( prime | Function to return the required sum.
Driver code"
How can the above be solved in Python?
assistant
#Here is code to sum of each element raised to ( prime and the other steps required.
 def getSum ( arr , p ) :
	return len ( arr )
if __name__ == " _ _ main _ _ " :
	arr = [ 5 , 6 , 8 ]
	p = 7
	print ( getSum ( arr , p ) )