Termsslug: modular-exponentiation

Modular Exponentiation

模幂运算

Computing a power modulo an integer, the core cost in BBP-type algorithms.

Curated Intelligence

1 items · Page 1/1
Hacker News AIT2·Models
58 pts
New Algorithm Cuts Work for Extracting Hex Digits of Pi by 61%

The author presents a new algorithm that extracts hexadecimal digits of pi without computing preceding digits, beating term-by-term evaluations of BBP, Bellard and Huvent on operation count. The key is sharing modular arithmetic across common and paired denominators, yielding roughly 61% fewer divisions and 38% fewer full modular exponentiations at large offsets.