a=int(input())
b=int(input())
flag=0
for p in range(2,min(a,b)):
if(a%p==0 and b%p==0):
flag=1;
if(flag==1):
print("Not coprime")
else:
print("Coprime")
b=int(input())
flag=0
for p in range(2,min(a,b)):
if(a%p==0 and b%p==0):
flag=1;
if(flag==1):
print("Not coprime")
else:
print("Coprime")
No comments:
Post a Comment