2 can be expressed as 4 ^ 6, 4 > 1 and 6 > 0 and both are integers. So, it satisfies all the conditions, therefore, the answer should be 1 instead of 0.

# Shouldn't the output of 2 be 1, in fact, output of each input should be 1

**prhythm3099**#2

^ isnâ€™t an XOR function. It is the power function. So, 4^6 is 4*4*4*4*4*4. Sorry if you have already figured it out.

no we can not represent 2 , only way is 2^1 ; but in the question itself it is given power must be greater than 1