project euler 1 solution