Pega Platform may need to validate numeric values before applying a decision rule. Given an integer n, determine whether it is prime without relying on a library primality function.
A prime number is an integer greater than 1 with exactly two positive divisors: 1 and itself. Return True if n is prime; otherwise, return False.
n.n. Explain why this is sufficient.def is_prime(n):