The prime factorization of 6789 is:
$$ 6789 = 3\cdot31\cdot73 $$Prime factorization can be nicely visualized by creating a factorization tree.
| 6789 can be written as 3 × 2263. |
|
| 2263 can be written as 31 × 73. |
|
| The end nodes are the prime factors of the number 6789. |
|