The number 313871 (three hundred thirteen thousand eight hundred seventy-one) is written in Roman numerals as follows: CCCXIIIDCCCLXXI