12587 has 4 divisors (see below), whose sum is σ = 12936.
Its totient is φ = 12240.
The previous prime is 12583. The next prime is 12589. The reversal of 12587 is 78521.
12587 is digitally balanced in base 2, because in such base it contains all the possibile digits an equal number of times.
It is a semiprime because it is the product of two primes, and also an emirpimes, since its reverse is a distinct semiprime: 78521 = 233 ⋅337.
It is a cyclic number.
It is not a de Polignac number, because 12587 - 22 = 12583 is a prime.
It is an alternating number because its digits alternate between odd and even.
It is a Duffinian number.
It is an inconsummate number, since it does not exist a number n which divided by its sum of digits gives 12587.
It is not an unprimeable number, because it can be changed into a prime (12583) by changing a digit.
It is a pernicious number, because its binary representation contains a prime number (7) of ones.
It is a polite number, since it can be written in 3 ways as a sum of consecutive naturals, for example, 113 + ... + 194.
It is an arithmetic number, because the mean of its divisors is an integer number (3234).
212587 is an apocalyptic number.
12587 is a deficient number, since it is larger than the sum of its proper divisors (349).
12587 is an equidigital number, since it uses as much as digits as its factorization.
12587 is an odious number, because the sum of its binary digits is odd.
The sum of its prime factors is 348.
The product of its digits is 560, while the sum is 23.
The square root of 12587 is about 112.1918000569.
The cubic root of 12587 is about 23.2616621649.
It can be divided in two parts, 125 and 87, that added together give a palindrome (212).
The spelling of 12587 in words is "twelve thousand, five hundred eighty-seven".