
Euler 3. Largest prime factor
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
即是求数字600851475143的最大质因子。
Ruby代码:
1 |
class |
输出结果
1 |
the largest prime factor is 6857 |

Euler 3. Largest prime factor
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
即是求数字600851475143的最大质因子。
Ruby代码:
1 |
class |
输出结果
1 |
the largest prime factor is 6857 |
近期评论