5004 has 18 divisors (see below), whose sum is σ = 12740.
Its totient is φ = 1656.
The previous prime is 5003. The next prime is 5009. The reversal of 5004 is 4005.
It is a tau number, because it is divible by the number of its divisors (18).
It is a Harshad number since it is a multiple of its sum of digits (9).
It is a plaindrome in base 13 and base 16.
It is not an unprimeable number, because it can be changed into a prime (5003) by changing a digit.
It is a polite number, since it can be written in 5 ways as a sum of consecutive naturals, for example, 34 + ... + 105.
It is an amenable number.
5004 is an abundant number, since it is smaller than the sum of its proper divisors (7736).
It is a pseudoperfect number, because it is the sum of a subset of its proper divisors.
5004 is a wasteful number, since it uses less digits than its factorization.
5004 is an evil number, because the sum of its binary digits is even.
The sum of its prime factors is 149 (or 144 counting only the distinct ones).
The product of its (nonzero) digits is 20, while the sum is 9.
The square root of 5004 is about 70.7389567353.
The cubic root of 5004 is about 17.1043181872.
Adding to 5004 its reverse (4005), we get a palindrome (9009).
Subtracting from 5004 its reverse (4005), we obtain a palindrome (999).
The spelling of 5004 in words is "five thousand, four".