The number 21740 (twenty-one thousand seven hundred forty) is written in Roman numerals as follows: XXIDCCXL