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 is prime(n): """Return true if a given number is prime, and false otherwise. is prime(6) False is prime(101) True is prime(11) True is…
The task
def is_prime(n): """Return true if a given number is prime, and false otherwise. >>> is_prime(6) False >>> is_prime(101) True >>> is_prime(11) True >>> is_prime(13441) True >>> is_prime(61) True >>> is_prime(4) False >>> is_prime(1) False """
Part of rawmodels/unslop-harbor.