project欧拉第三题

http://projecteuler.net/index.php?section=problems&id=3
projecteuler.net第三题
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?

找出600851475143的最大质因数?

答案:6857

 

python code:

   

     import sympy

     max(sympy.factorint(600851475143))

 

 

你可能感兴趣的:(PHP,.net,python)