Is 787 a prime number?

Yes, 787 is a prime number: its only factors are 1 and 787. It is the 138th prime. In words it is seven hundred eighty-seven, and in Roman numerals DCCLXXXVII.

Seven hundred eighty-seven
787 is a prime number
DCCLXXXVIIRoman numeral
primetype
oddparity
2divisors
1100010011binary
22digit sum

All facts about 787 →

Is 787 a prime number? Yes

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

138thprime number
773previous prime (gap 14)
797next prime (gap 10)

How to write 787 in words

Seven hundred eighty-seven

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

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

787 in Roman numerals

787 = DCCLXXXVII

Break 787 into place values and write each one: 700 = DCC, 80 = LXXX, 7 = VII. Joined: DCCLXXXVII.

Properties of 787

PropertyValue
Parityodd
Number of digits3
Digit sum22
Digital root4
Reversed787 (palindrome)
Perfect square?no
Perfect cube?no
Triangular number?no
Fibonacci number?no
Classificationdeficient

Square root, square and cube of 787

OperationResult
√78728.054 (between 28 and 29)
∛7879.233
787²619,369
787³487,443,403
1 ÷ 7870.00127064803

787 in binary, octal and hexadecimal

Base787 is written
Binary (2)11 0001 0011 (10 bits)
Ternary (3)1002011
Octal (8)1423
Duodecimal (12)557
Hexadecimal (16)313
Base 36LV

Convert 787 to any base

Collatz sequence of 787

Halve if even, triple and add 1 if odd: starting from 787 it takes 59 steps to reach 1, peaking at 3,544. First steps: 787 → 2,362 → 1,181 → 3,544 → 1,772 → 886 → 443 → 1,330 → 665 → 1,996 → …

Multiplication table of 787

787 ×Result
787 × 1787
787 × 21,574
787 × 32,361
787 × 43,148
787 × 53,935
787 × 64,722
787 × 75,509
787 × 86,296
787 × 97,083
787 × 107,870
787 × 118,657
787 × 129,444

Nearby numbers

Frequently asked questions

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