10042 in words is written as :

Ten Thousand Forty Two