The number 331040 (three hundred thirty-one thousand forty) is written in Roman numerals as follows: CCCXXXIXL