The number 310504 (three hundred ten thousand five hundred four) is written in Roman numerals as follows: CCCXDIV