Brent's variation of a factorization algorithm

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Dec 8 13:26:38 EST 2009


En Fri, 27 Nov 2009 12:36:29 -0300, n00m <n00m at narod.ru> escribió:

> Maybe someone'll make use of it:
>
>
> def gcd(x, y):
>     if y == 0:
>         return x
>     return gcd(y, x % y)
>
> def brent(n): ...

A better place to publish this code would be the Python Cookbook:  
http://code.activestate.com

-- 
Gabriel Genellina




More information about the Python-list mailing list