10017 in words is written as :

Ten Thousand Seventeen