I need a very very fast python algorithm that can find max of gcd of 100,000 numbers in shortest time!
and here is my code but it's too slow for huge lists.
for x in mlist:
for y in mlist[i:]:
tmp = gcd(x, y)
if tmp > highest:
highest = tmp
i += 1
print(highest)
thank you