I want to find largest prime factor of 600851475143.
But range in my code doesn't work for 600851475143 , too big number .
What should I do? Is there any more efficient algorithm?
list=[]
for i in range(1,600851475144):
    count = 0
    if 600851475143 % i == 0:
        for x in range(2,i):
            if i % x == 0:
                count+=1
                print(count)
        if count == 0:
            list.append(i)
        count=0
print(list)
 
     
    