euler 43 solution java