1040004 in words is written as :

One Million Forty Thousand Four