function getMilharNumber(n) -- critico
return tostring(math.floor(n)):reverse():gsub("(%d%d%d)","%1."):gsub(",(%-?)$","%1"):reverse()
end
print(getMilharNumber(1000000))
ZnVuY3Rpb24gZ2V0TWlsaGFyTnVtYmVyKG4pIC0tIGNyaXRpY28KcmV0dXJuIHRvc3RyaW5nKG1hdGguZmxvb3IobikpOnJldmVyc2UoKTpnc3ViKCIoJWQlZCVkKSIsIiUxLiIpOmdzdWIoIiwoJS0/KSQiLCIlMSIpOnJldmVyc2UoKQplbmQKCnByaW50KGdldE1pbGhhck51bWJlcigxMDAwMDAwKSk=