The number 25871 (twenty-five thousand eight hundred seventy-one) is written in Roman numerals as follows: XXVDCCCLXXI