Write a method to determine if a number is prime.
Return a Boolean indicating whether the given non-negative integer has exactly two positive divisors: 1 and itself. For example, 17 returns true, while 18 returns false.
Implement is_prime(n), which accepts an integer and returns a Boolean.
def is_prime(n):