Anonim_111, you probably used bit manipulations to get powers of 2. And fell into same trap as me: the result is way bigger then intager limit.