10582 in words is written as :

Ten Thousand Five Hundred and Eighty Two