Source: wikibot/spigot-algorithm

= Spigot algorithm
{wiki=Spigot_algorithm}

The Spigot algorithm is a type of algorithm used to compute the digits of certain mathematical constants and numbers, notably π (pi) and e, in a sequential manner. The key characteristic of Spigot algorithms is that they allow for the computation of the digits of a number without needing to compute all the preceding digits, making them particularly efficient for generating long sequences of digits.