I am solving problem 3 in euler project to find the largest prime factor of a certain number.
def findFactors(num: int)->list:
factors = []
for i in range(1, num+1):
if num%i == 0:
factors.append(i)
return factors
prime_factors = (findFactors(600851475143))
max= prime_factors[0]
num = 600851475143
for i in range(0, len(prime_factors)):
if (prime_factors[i] > max):
max = prime_factors[i]
print(f"The largest prime factor of the {num} is {max}")
When I run the code for "13195", the code runs correctly but when I run the code for the actual number i.e 600851475143, the code is not giving any output, neither any errors