5039 has 2 divisors, whose sum is σ = 5040.
Its totient is φ = 5038.
The previous prime is 5023. The next prime is 5051. The reversal of 5039 is 9305.
It is a strong prime.
It is a cyclic number.
It is not a de Polignac number, because 5039 - 24 = 5023 is a prime.
It is a Sophie Germain prime.
It is a Chen prime.
It is a plaindrome in base 12 and base 16.
It is a congruent number.
It is not a weakly prime, because it can be changed into another prime (5009) by changing a digit.
It is a polite number, since it can be written as a sum of consecutive naturals, namely, 2519 + 2520.
It is an arithmetic number, because the mean of its divisors is an integer number (2520).
25039 is an apocalyptic number.
5039 is a deficient number, since it is larger than the sum of its proper divisors (1).
5039 is an equidigital number, since it uses as much as digits as its factorization.
5039 is an odious number, because the sum of its binary digits is odd.
The product of its (nonzero) digits is 135, while the sum is 17.
The square root of 5039 is about 70.9859140957.
The cubic root of 5039 is about 17.1441037453.
It can be divided in two parts, 503 and 9, that added together give a 9-th power (512 = 29).
The spelling of 5039 in words is "five thousand, thirty-nine".