5171 has 2 divisors, whose sum is σ = 5172.
Its totient is φ = 5170.
The previous prime is 5167. The next prime is 5179. The reversal of 5171 is 1715.
It is a weak prime.
It is a cyclic number.
It is not a de Polignac number, because 5171 - 22 = 5167 is a prime.
It is a Sophie Germain prime.
It is a Chen prime.
It is a plaindrome in base 13.
It is not a weakly prime, because it can be changed into another prime (5179) by changing a digit.
It is a polite number, since it can be written as a sum of consecutive naturals, namely, 2585 + 2586.
It is an arithmetic number, because the mean of its divisors is an integer number (2586).
25171 is an apocalyptic number.
5171 is a deficient number, since it is larger than the sum of its proper divisors (1).
5171 is an equidigital number, since it uses as much as digits as its factorization.
5171 is an evil number, because the sum of its binary digits is even.
The product of its digits is 35, while the sum is 14.
The square root of 5171 is about 71.9096655534.
The cubic root of 5171 is about 17.2925157242.
Adding to 5171 its reverse (1715), we get a palindrome (6886).
The spelling of 5171 in words is "five thousand, one hundred seventy-one".