'''
Author:Kalpana Baigar
program to check accepted number is prime or not
'''

#accepting number from user
num1="7"                        #takinng input as a sting value
x=int(num1)                     #converting string type to integer typ
print(x)
print(type(x))

def prime(num):
    
    for x in range(2,num):                #values in the range of 2 to num-1
        if(num%x==0):                     #if number is divisible
         #  print("not a prime number")    #printing number is prime
           return True;
           break;
    else:
          # print("prime number")
          return False

iret=prime(x)
if(iret==True):
    print("not a prime number") 

else:
    print("prime number")

28c380a2ed6019054daec54360fec60bcc9f045f
<mask token>

<mask token>


def prime(num):
    for x in range(2, num):
        if num % x == 0:
            return True
            break
    else:
        return False


<mask token>

<mask token>
print(x)
print(type(x))


def prime(num):
    for x in range(2, num):
        if num % x == 0:
            return True
            break
    else:
        return False


<mask token>
if iret == True:
    print('not a prime number')
else:
    print('prime number')

<mask token>
num1 = '7'
x = int(num1)
print(x)
print(type(x))


def prime(num):
    for x in range(2, num):
        if num % x == 0:
            return True
            break
    else:
        return False


iret = prime(x)
if iret == True:
    print('not a prime number')
else:
    print('prime number')

'''
Author:Kalpana Baigar
program to check accepted number is prime or not
'''

#accepting number from user
num1="7"                        #takinng input as a sting value
x=int(num1)                     #converting string type to integer typ
print(x)
print(type(x))

def prime(num):
    
    for x in range(2,num):                #values in the range of 2 to num-1
        if(num%x==0):                     #if number is divisible
         #  print("not a prime number")    #printing number is prime
           return True;
           break;
    else:
          # print("prime number")
          return False

iret=prime(x)
if(iret==True):
    print("not a prime number") 

else:
    print("prime number")
