13171 in words is written as :

Thirteen Thousand One Hundred and Seventy One