Is 31 a prime number?

Yes, 31 is a prime number: its only factors are 1 and 31. It is the 11th prime. In words it is thirty-one, and in Roman numerals XXXI.

Thirty-one
31 is a prime number
XXXIRoman numeral
primetype
oddparity
2divisors
11111binary
4digit sum

All facts about 31 →

Is 31 a prime number? Yes

31 has exactly two divisors, 1 and itself. To confirm it, it is enough to test the primes up to √31 ≈ 5.568: 2, 3, 5 — none divides 31 evenly.

11thprime number
29previous prime (gap 2)
37next prime (gap 6)

How to write 31 in words

Thirty-one

StyleWritten
Cardinal (US)thirty-one
Ordinalthirty-first (31st)
On a checkThirty-one and 00/100 dollars

31 in Roman numerals

31 = XXXI

Break 31 into place values and write each one: 30 = XXX, 1 = I. Joined: XXXI.

Properties of 31

PropertyValue
Parityodd
Number of digits2
Digit sum4
Digital root4
Reversed13
Perfect square?no
Perfect cube?no
Triangular number?no
Fibonacci number?no
Classificationdeficient

Square root, square and cube of 31

OperationResult
√315.568 (between 5 and 6)
∛313.141
31²961
31³29,791
1 ÷ 310.03225806452

31 in binary, octal and hexadecimal

Base31 is written
Binary (2)1 1111 (5 bits)
Ternary (3)1011
Octal (8)37
Duodecimal (12)27
Hexadecimal (16)1F
Base 36V

Convert 31 to any base

Collatz sequence of 31

Halve if even, triple and add 1 if odd: starting from 31 it takes 106 steps to reach 1, peaking at 9,232. First steps: 31 → 94 → 47 → 142 → 71 → 214 → 107 → 322 → 161 → 484 → …

Multiplication table of 31

31 ×Result
31 × 131
31 × 262
31 × 393
31 × 4124
31 × 5155
31 × 6186
31 × 7217
31 × 8248
31 × 9279
31 × 10310
31 × 11341
31 × 12372

Nearby numbers

Frequently asked questions

Is 31 a prime number?
Yes. 31 is only divisible by 1 and itself.
How do you write 31 in words?
Thirty-one.
What is 31 in Roman numerals?
XXXI.