Is 797 a prime number?

Yes, 797 is a prime number: its only factors are 1 and 797. It is the 139th prime. In words it is seven hundred ninety-seven, and in Roman numerals DCCXCVII.

Seven hundred ninety-seven
797 is a prime number
DCCXCVIIRoman numeral
primetype
oddparity
2divisors
1100011101binary
23digit sum

All facts about 797 →

Is 797 a prime number? Yes

797 has exactly two divisors, 1 and itself. To confirm it, it is enough to test the primes up to √797 ≈ 28.231: 2, 3, 5, 7, 11, 13, 17, 19, 23 — none divides 797 evenly.

139thprime number
787previous prime (gap 10)
809next prime (gap 12)

How to write 797 in words

Seven hundred ninety-seven

StyleWritten
Cardinal (US)seven hundred ninety-seven
Ordinalseven hundred ninety-seventh (797th)
On a checkSeven hundred ninety-seven and 00/100 dollars

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

797 in Roman numerals

797 = DCCXCVII

Break 797 into place values and write each one: 700 = DCC, 90 = XC, 7 = VII. Joined: DCCXCVII.

Properties of 797

PropertyValue
Parityodd
Number of digits3
Digit sum23
Digital root5
Reversed797 (palindrome)
Perfect square?no
Perfect cube?no
Triangular number?no
Fibonacci number?no
Classificationdeficient

Square root, square and cube of 797

OperationResult
√79728.231 (between 28 and 29)
∛7979.272
797²635,209
797³506,261,573
1 ÷ 7970.001254705144

797 in binary, octal and hexadecimal

Base797 is written
Binary (2)11 0001 1101 (10 bits)
Ternary (3)1002112
Octal (8)1435
Duodecimal (12)565
Hexadecimal (16)31D
Base 36M5

Convert 797 to any base

Collatz sequence of 797

Halve if even, triple and add 1 if odd: starting from 797 it takes 121 steps to reach 1, peaking at 9,232. First steps: 797 → 2,392 → 1,196 → 598 → 299 → 898 → 449 → 1,348 → 674 → 337 → …

Multiplication table of 797

797 ×Result
797 × 1797
797 × 21,594
797 × 32,391
797 × 43,188
797 × 53,985
797 × 64,782
797 × 75,579
797 × 86,376
797 × 97,173
797 × 107,970
797 × 118,767
797 × 129,564

Nearby numbers

Frequently asked questions

Is 797 a prime number?
Yes. 797 is only divisible by 1 and itself.
How do you write 797 in words?
Seven hundred ninety-seven.
What is 797 in Roman numerals?
DCCXCVII.