2887021 in words is written as :

Two Million Thousand Twenty One