5740 in words is written as :

Five Thousand Seven Hundred and Forty