Implement the Python function specified below. Return ONLY the indented function body, without repeating the…
Implement the Python function specified below. Return ONLY the indented function body, without repeating the…: a task in unslop-harbor (Harbor dataset). def largest prime factor(n: int): """Return the largest prime factor of n. Assume n 1 and is not a prime. largest prime factor(13195) 29 largest…
The task
def largest_prime_factor(n: int): """Return the largest prime factor of n. Assume n > 1 and is not a prime. >>> largest_prime_factor(13195) 29 >>> largest_prime_factor(2048) 2 """
Part of rawmodels/unslop-harbor.