The number 21582 (twenty-one thousand five hundred eighty-two) is written in Roman numerals as follows: XXIDLXXXII