-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheuler221.py
executable file
·28 lines (25 loc) · 1.08 KB
/
euler221.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/python
alexlist = []
while len(alexlist) < 150001:
for i in range(1,150000):
for j in range(1,150000):
for k in range(1,150000):
if 1/(i*j*k) == (1/i)+ (1/j) + (1/k):
alexlist.append(i*j*k)
if 1/(i*-j*k) == (1/i)+ (-1/j) + (1/k):
alexlist.append(i*-j*k)
if 1/(i*j*-k) == (1/i)+ (1/j) + (-1/k):
alexlist.append(i*j*-k)
if 1/(i*-j*-k) == (1/i)+ (-1/j) + (-1/k):
alexlist.append(i*-j*-k)
if 1/(-i*j*k) == (-1/i)+ (1/j) + (1/k):
alexlist.append(i*j*k)
if 1/(-i*-j*k) == (-1/i)+ (-1/j) + (1/k):
alexlist.append(-i*-j*k)
if 1/(-i*-j*k) == (-1/i)+ (-1/j) + (1/k):
alexlist.append(-i*-j*k)
if 1/(-i*j*-k) == (-1/i)+ (1/j) + (-1/k):
alexlist.append(-i*j*-k)
if 1/(-i*-j*-k) == (-1/i)+ (-1/j) + (-1/k):
alexlist.append(-i*-j*-k)
print alexlist[150000]