from main import Solver
solver = Solver()

big = 600851475143

def largest_prime_factor(number):
    b = 2
    a = number
    while a > b:
        if int(a % b) == 0:
            a /= b
            b = 2
        else:
            b += 1
    return int(a)

solver.solve(3, largest_prime_factor(big))

from main import Solver
solver = Solver()

big = 600851475143

def largest_prime_factor(number):
    b = 2
    a = number
    while a > b:
        if int(a % b) == 0:
            a /= b
            b = 2
        else:
            b += 1
    return int(a)

solver.solve(3, largest_prime_factor(big))
