this is code for simple lcm in python3.6. I have tried every input possible and answer comes out to be right. but when i submit practice my code,codedchef tells that it gives wrong answer. please help me with code and kindly tell the error

try:

def compute_lcm(a, b):

from math import gcd

lcm = a * b // gcd(a, b)

return lcm

```
n = int(input())
e = list(map(int, input().split()))
e.sort(reverse=True)
max = 0
if n > 10000:
for i in range(n // 100):
for j in range(i + 1, int(n // 100)):
l = compute_lcm(e[i], e[j])
if l > max:
max = l
else:
for i in range(len(e)):
for j in range(i + 1, len(e)):
l = compute_lcm(e[i], e[j])
if (l > max):
max = l
print(max)
```

except:

pass