optimize problem 43. Before optimizing,it takes 10s to calculate the sum
after optimizing, it only takes 0.093s to calculate it.