The number 24171 (twenty-four thousand one hundred seventy-one) is written in Roman numerals as follows: XXIVCLXXI