For this Question: Given an integer N, your task is to check whether the given number is prime or notThe input contains a single integer N.

Constraints:-
1 <= N <= 100000000000Print "YES" If the given number is prime else print "NO".Sample Input:-
2

Sample Output:-
YES

Sample Input:-
4

Sample Output:-
NO, I have written this Solution Code: import math
def isprime(A):
    if A == 1:
        return False
    sqrt = int(math.sqrt(A))
    for i in range(2,sqrt+1):
        if A%i == 0:
            return False
    return True

inp = int(input())
if isprime(inp):
    print("YES")
else:
    print("NO"), In this Programming Language: Python, Now tell me if this Code is compilable or not?