updated euler problem #4