10589 in words is written as :

Ten Thousand Five Hundred and Eighty Nine