The number 21823 (twenty-one thousand eight hundred twenty-three) is written in Roman numerals as follows: XXIDCCCXXIII