The number 5171 (five thousand one hundred seventy-one) is written in Roman numerals as follows: VCLXXI