couple of solution to euler 2 problem