[SciPy-user] prime factorization...

fred fredmfp@gmail....
Wed Jun 17 12:45:37 CDT 2009


Joe Harrington a écrit :
> fred <fredmfp@gmail.com>:
>> Is there any function in scipy that gives the prime factorization?
> 
>> ie 50 -> [5, 5, 2]?
> 
> There may be a solution in sympy:
> 
> http://mail.python.org/pipermail/python-list/2008-March/653138.html
Perfect!
(I have installed sympy and don't plan to install sage only to compute
prime factorization, David; thanks anyway).
> 
> There is also a linux 'factor' program that does numbers up to around 1.8e19:
Arg, I forgot this one!


Thanks a lot!

Cheers,

-- 
Fred


More information about the SciPy-user mailing list