Help me in solving INDIVISIBLE problem

My issue

My code

# cook your dish here
for _ in range(int(input())):
    A, B, C = map(int, input().split())
    for i in range(1, 100):
        if A%i != 0 and B%i != 0 and C%i != 0:
            print(i)
            break

Problem Link: INDIVISIBLE Problem - CodeChef

Instead of using and operator you can use nested if statement. And range should be from 2-100 as every no. is divisible by 1. Here is my solution,
for i in range(int(input())):
a,b,c = map(int,input().split())
for j in range(2,100):
if (a%j!=0):
if(b%j!=0):
if(c%j!=0):
break
print(j)