The number 21724 (twenty-one thousand seven hundred twenty-four) is written in Roman numerals as follows: XXIDCCXXIV