Thursday, August 14, 2014

Factors of The Number vs Prime Factors of The Number

For the given number, num = 100

factors = [1, 100, 2, 50, 4, 25, 5, 20, 10]

prime factors = [2, 2, 5, 5]



Code For Factors:

https://github.com/dkuldeep11/project-euler/blob/master/problem12/get_factors.py




Code For Prime Factors:

https://github.com/dkuldeep11/project-euler/blob/master/problem-3/get_prime_factors.py


No comments:

Post a Comment