On Euler's criterion