You are viewing a single comment's thread. Return to all comments →
for a0 in range(t): n = int(input().strip()) i = 2 while i*i <= n: if n%i == 0: n //= i else: i += 1 print(n)
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #3: Largest prime factor
You are viewing a single comment's thread. Return to all comments →