The number 871005 (eight hundred seventy-one thousand five) is written in Roman numerals as follows: DCCCLXXIV