Is 127 a prime number?

Yes, 127 is a prime number: its only factors are 1 and 127. It is the 31st prime. In words it is one hundred twenty-seven, and in Roman numerals CXXVII.

One hundred twenty-seven
127 is a prime number
CXXVIIRoman numeral
primetype
oddparity
2divisors
1111111binary
10digit sum

All facts about 127 →

Is 127 a prime number? Yes

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

31stprime number
113previous prime (gap 14)
131next prime (gap 4)

How to write 127 in words

One hundred twenty-seven

StyleWritten
Cardinal (US)one hundred twenty-seven
Ordinalone hundred twenty-seventh (127th)
On a checkOne hundred twenty-seven and 00/100 dollars

In US English there is no “and” after “hundred” (one hundred twenty-seven); British English adds it (one hundred and twenty-seven).

127 in Roman numerals

127 = CXXVII

Break 127 into place values and write each one: 100 = C, 20 = XX, 7 = VII. Joined: CXXVII.

Properties of 127

PropertyValue
Parityodd
Number of digits3
Digit sum10
Digital root1
Reversed721
Perfect square?no
Perfect cube?no
Triangular number?no
Fibonacci number?no
Classificationdeficient

Square root, square and cube of 127

OperationResult
√12711.269 (between 11 and 12)
∛1275.027
127²16,129
127³2,048,383
1 ÷ 1270.007874015748

127 in binary, octal and hexadecimal

Base127 is written
Binary (2)111 1111 (7 bits)
Ternary (3)11201
Octal (8)177
Duodecimal (12)A7
Hexadecimal (16)7F
Base 363J

Convert 127 to any base

Collatz sequence of 127

Halve if even, triple and add 1 if odd: starting from 127 it takes 46 steps to reach 1, peaking at 4,372. First steps: 127 → 382 → 191 → 574 → 287 → 862 → 431 → 1,294 → 647 → 1,942 → …

Multiplication table of 127

127 ×Result
127 × 1127
127 × 2254
127 × 3381
127 × 4508
127 × 5635
127 × 6762
127 × 7889
127 × 81,016
127 × 91,143
127 × 101,270
127 × 111,397
127 × 121,524

Nearby numbers

Frequently asked questions

Is 127 a prime number?
Yes. 127 is only divisible by 1 and itself.
How do you write 127 in words?
One hundred twenty-seven.
What is 127 in Roman numerals?
CXXVII.