The number 31571 (thirty-one thousand five hundred seventy-one) is written in Roman numerals as follows: XXXIDLXXI