user
Instruction:Write a function in python that checks if the given number is a prime number or not.

Input: n = 27


assistant
def check_prime(n):
    if n < 2:
        return False
    for i in range(2, n):
        if n % i == 0:
            return False
    return True