euler 73 in java