Brent's Algorithm

From dankwiki