human
Given a HUGE number check if it 's a power of two. | Function to check whether a number is power of 2 or not.
Driver function"
Solution in Python:
 ... Write me a code to given a HUGE number check if it 's a power of two?
assistant
#Here is code to given a HUGE number check if it 's a power of two.
 def ispowerof2 ( num ) :
	if ( ( num & ( num - 1 ) ) == 0 ) :
		return 1
	return 0
if __name__ == ' _ _ main _ _ ' :
	num = 549755813888
	print ( ispowerof2 ( num ) )