10172 in words is written as :

Ten Thousand One Hundred and Seventy Two