The story has it that a few hundred years ago the ruler of a big country wanted to reward the creator of the chess game. The creator of the game simply wanted one grain of rice put on the first square of the chessboard, two grains on the second, then doubling it for every remaining square. The ruler acted surprised by the humble request, had his helpers bring a bag of rice and started to fill the squares.
Did the creator of the chess game get a decent reward? Let's check it with some Go code.
Note: I printed out the loop results and corrected a mistake.