Problem 12

One comment on “Problem 12”


  • Mohd Saif

    #python

    n=int(input(“Enter the no:\n”))
    if(n>1):
    for i in range(2,n):
    if(n%i==0):
    print(f”{n} is not a prime number”)
    break
    else:
    print(f”{n} is a prime number”)
    else:
    print(f”{n} is not a prime number”)