add euler problem #3