The number 313040 (three hundred thirteen thousand forty) is written in Roman numerals as follows: CCCXIIIXL