Test Case #1:
Subset 1: {2} ==> lcm = 2, gcd = 2, gll = 8
Subset 2: {3} ==> lcm = 3, gcd = 3, gll = 27
Subset 3: {2, 3} ==> lcm = 6, gcd = 1, gll = 36
Answer = 8 + 27 + 36 = 71
Test Case #2:
Subset 1: {2} ==> lcm = 2, gcd = 2, gll = 8
Subset 2: {4} ==> lcm = 4, gcd = 4, gll = 64
Subset 3: {10} ==> lcm = 10, gcd = 10, gll = 1000
Subset 4: {2, 4} ==> lcm = 4, gcd = 2, gll = 32
Subset 5: {4, 10} ==> lcm = 20, gcd = 2, gll = 800
Subset 6: {2, 10} ==> lcm = 10, gcd = 2, gll = 200
Subset 7: {2, 4, 10} ==> lcm = 20, gcd = 2, gll = 800
Answer = 8 + 64 + 1000 + 32 + 800 + 200 + 800 = 2904