Find the greatest common divisor of 24 and 36.
24 [OP_LIST_GET_DIVISOR] 36 [OP_LIST_GET_DIVISOR] [OP_SET_INTERSECT] 1 [OP_LIST_MAX]
var_a = 24
list_a = []
num_sqrt = int(math.sqrt(var_a))
for i in range(1, num_sqrt+1):
    if var_a % i == 0:
        list_a.append(i)
        list_a.append(int(var_a/i))
list_a = sorted(set(list_a))
var_b = 36
list_b = []
num_sqrt = int(math.sqrt(var_b))
for i in range(1, num_sqrt+1):
    if var_b % i == 0:
        list_b.append(i)
        list_b.append(int(var_b/i))
list_b = sorted(set(list_b))
list_c = list(set(list_a) & set(list_b))
var_c = 1
list_d=list_c.copy()
list_d.sort()
var_d = list_d[-var_c]
print(int(var_d))