The number 21873 (twenty-one thousand eight hundred seventy-three) is written in Roman numerals as follows: XXIDCCCLXXIII