Compiled both versions and modified the get_greatest_prime_factor meth so that it is more efficient and can handle large numbers