1001004 in words is written as :

One Million One Thousand Four