Number analysis
157
157 is a prime number — divisible only by 1 and itself.
157 is a prime number — divisible only by 1 and itself.
The number itself
- Value
- 157
- Digits
- 3
- Digit sum
- 13
- Reversed
- 751
- Palindrome
- No
1 + 5 + 7
Digit sum repeated until one digit remains; equals n mod 9 (with 9 for multiples of 9).
Reverses to 751.
Parity and primality
- Parity
- Odd
- Prime
- Yes
- Squarefree
- Yes
- Möbius μ(n)
- -1
- Nearest primes
- 151 ← → 163
Leaves remainder 1 on division by 2.
Divisible only by 1 and itself.
1 distinct prime factor, 1 with multiplicity.
No prime divides it twice.
(−1) to the power of 1 distinct prime factors.
A gap of 12 between them.
Divisors
- Aliquot sum
- 1
- Classification
- Deficient
1, 157
The proper divisors — everything except n itself.
Its proper divisors fall short by 156.
How many integers from 1 to n share no factor with n.
Sums and additive structure
- Sum of two squares
- Yes
- Sum of three squares
- Yes
- Sum of four squares
- Yes
6² + 11² = 157
Legendre's three-square theorem allows it.
Lagrange's four-square theorem: every non-negative integer is, without exception.
Shapes and sequences
- Figurate shapes
- None
Not triangular, square, pentagonal, hexagonal, cubic, Fibonacci, Lucas, Catalan, factorial or a power of two.
Digit curiosities
- Happy number
- No
- Harshad number
- No
- Collatz trajectory
- 36 steps to 1
Summing the squares of its digits falls into the 4 → 16 → 37 → … → 4 cycle.
Not divisible by its digit sum 13.
Peaks at 472 along the way.
Written other ways
- Binary
- 10011101
- Octal
- 235
- Hexadecimal
- 9D
- Base 36
- 4D
- Roman numerals
- CLVII
- In words
- one hundred and fifty-seven
- Scientific notation
- 1.57 × 10^2
Is 157 a prime number?
Yes. 157 has no divisors other than 1 and itself.
Nearby numbers
Other numeral systems
Beyond the bases and Roman numerals above, these notations write 157 their own way.
- Morse code
- · − − − − · · · · · − − · · ·
- Devanagari
- १५७
- Tamil
- ௱௫௰௭
- Thai
- ๑๕๗
References
Further reading: Wikipedia · Wikidata
Notations, naming and the links above come from Wikidata, whose structured data is dedicated to the public domain under CC0-1.0. Retrieved 2026-10-07.