10005004 in words is written as :

Ten Million Five Thousand Four