The number 21791 (twenty-one thousand seven hundred ninety-one) is written in Roman numerals as follows: XXIDCCXCI