The number 21587 (twenty-one thousand five hundred eighty-seven) is written in Roman numerals as follows: XXIDLXXXVII