Story

On air. The free wire runs 15 minutes behind live. See pricing

World, crypto, finance and tech news, scored for impact.

TechHacker NewsFiled 31 h ago

A faster algorithm for extracting hexadecimal digits of π

Open the sourceReported by Hacker News, stylewarning.com, 25 November 2026

Not investment advice. Muhabbit scores how much a story may matter, not which way to trade.

A new algorithm for extracting hexadecimal digits of π improves on the Bailey–Borwein–Plouffe (BBP), Bellard, and Huvent methods by cutting the operation count needed to skip ahead without computing preceding digits. Against Huvent’s eight-term formula, the approach reduces divisions by about 61% and full modular exponentiations by 38% at large offsets, and saves roughly a million full exponentiations per million hexadecimal places skipped. The method exploits a four-term identity whose shared denominator 2k+1 allows four remainders to be combined into a single division, while working modulo 3M lets two exponentiations serve both M and 3M. It builds on the BBP trick of taking fractional parts of shifted terms and on Euler’s 1779 series, which Craig-Wood previously used for hexadecimal extraction. The result matters because digit-extraction algorithms are judged by operations per skipped bit, and this work improves that ratio without a new series. What to watch next is whether the denominator-sharing idea extends to other series or yields further gains in machine-specific implementations.

Muhabbit's AI wrote this summary in its own words from Hacker News's report. It can get details wrong, so check the source.

Named in this story

Robert Smith, Bailey–Borwein–Plouffe, Bellard, Huvent