1020004 in words is written as :

One Million Twenty Thousand Four