31 is the 11th prime number. It is a superprime and a self prime (after 3, 5, and 7), as no integer added up to its base 10 digits results in 31.is the third Mersenne prime of the form 2n − 1, and the eighth Mersenne prime exponent, in-turn yielding the maximum positive value for a 32-bit signed binary integer in computing: 2,147,483,647. After 3, it is the second Mersenne prime not to be a double Mersenne prime, while the 31st prime number (127) is the second double Mersenne prime, following 7.On the other hand, the thirty-first triangular number is the perfect number 496, of the form 2(5 − 1)(25 − 1) by the Euclid-Euler theorem. 31 is also a primorial prime like its twin prime (29), as well as both a lucky prime and a happy number like its dual permutable prime in decimal (13).