The number 331004 (three hundred thirty-one thousand four) is written in Roman numerals as follows: CCCXXXIIV