<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def isprime(n):
 """Check the number is prime value. if prime value returns True, not False."""

    n = abs(int(n))

    if n < 2:
        return False
    if n == 2:
        return True
    if not n & 1:
        return False

    # 在一般领域, 对正整数n, 如果用2 到 sqrt(n) 之间所有整数去除, 均无法整除, 则n为质数.
    for x in range(3, int(n ** 0.5)+1, 2):
        if n % x == 0:
            return False

    return True