Worked Steps
- Compute pi with arbitrary-precision decimal arithmetic using the Chudnovsky algorithm.
- Generate more than 1,000 decimal places to avoid truncation error at the cutoff point.
- Output pi as 3 plus exactly 1,000 digits after the decimal point.