int result; for (int i = 0; i < 77232917; i++) { result = 2 * 2; <----- you basically said result=4 77232917 times } return result - 1; <--- and then 4-1=3