5023 has 2 divisors, whose sum is σ = 5024.
Its totient is φ = 5022.
The previous prime is 5021. The next prime is 5039. The reversal of 5023 is 3205.
It is a weak prime.
It is a cyclic number.
It is not a de Polignac number, because 5023 - 21 = 5021 is a prime.
Together with 5021, it forms a pair of twin primes.
It is a plaindrome in base 16.
It is a congruent number.
It is not a weakly prime, because it can be changed into another prime (5021) by changing a digit.
It is a polite number, since it can be written as a sum of consecutive naturals, namely, 2511 + 2512.
It is an arithmetic number, because the mean of its divisors is an integer number (2512).
5023 is a deficient number, since it is larger than the sum of its proper divisors (1).
5023 is an equidigital number, since it uses as much as digits as its factorization.
5023 is an odious number, because the sum of its binary digits is odd.
The product of its (nonzero) digits is 30, while the sum is 10.
The square root of 5023 is about 70.8731260775.
The cubic root of 5023 is about 17.1259389969.
Adding to 5023 its reverse (3205), we get a palindrome (8228).
It can be divided in two parts, 502 and 3, that added together give a palindrome (505).
The spelling of 5023 in words is "five thousand, twenty-three".