number.wiki
Number

31

31 is a prime, odd, a calendar year.

Deficient Number Happy Number Mersenne Prime Prime Sexy Prime Squarefree Twin Prime Year

Properties

Parity
Odd
Digit count
2
Digit sum
4
Digital root
4
Palindrome
No
Divisor count
2
σ(n) — sum of divisors
32

Primality

31 is prime. It has exactly two divisors: 1 and itself.

Divisors & multiples

All divisors (2)
1 · 31
Aliquot sum (sum of proper divisors): 1
Factor pairs (a × b = 31)
1 × 31
First multiples
31 · 62 · 93 · 124 · 155 · 186 · 217 · 248 · 279 · 310

Representations

In words
thirty-one
Ordinal
31st
Roman numeral
XXXI
Binary
11111
Octal
37
Hexadecimal
1F

Also seen as

Prime neighborhood

Adjacent primes:

  • Previous prime: 29 (gap of 2)
  • Next prime: 37 (gap of 6)

Pair status: twin with 29, sexy with 37.

ASCII character

As an ASCII codepoint, 31 is control character (0x1F). ASCII control character.

Hex color
#00001F
RGB(0, 0, 31)
IPv4 address

As an unsigned 32-bit integer, this is the IPv4 address 0.0.0.31.