The number 31623 (thirty-one thousand six hundred twenty-three) is written in Roman numerals as follows: XXXIDCXXIII