The number 25171 (twenty-five thousand one hundred seventy-one) is written in Roman numerals as follows: XXVCLXXI