trying to solve project euler number 14 [closed]

It is possible that 3*n+1 will overflow an int. Perhaps you should use a uint64_t?

Leave a Comment