prime number

 #Write your code below this line ๐Ÿ‘‡


def prime_checker(number):
is_prime=True
print("The factors are :")
for i in range(2,number):
if number%i==0:
print(i)
is_prime=False
return is_prime






#Write your code above this line ๐Ÿ‘†
#Do NOT change any of the code below๐Ÿ‘‡
n = int(input("Check this number: "))
b=prime_checker(number=n)

if b==True:
print("it is prime")
elif b==False:
print("it is not prime")




Comments

Popular posts from this blog

Sum of Even Numbers till N

Find the Runner-Up Score!

Print All Substrings