getting carried away with project euler 67