The number 21874 (twenty-one thousand eight hundred seventy-four) is written in Roman numerals as follows: XXIDCCCLXXIV