SaveText.Ru

Без имени
  1. import math
  2. import time
  3. start_time = time.time()
  4. for a in range(2,151):
  5.     for b in range(a,151):
  6.         for c in range(b,151):
  7.             for d in range(c,151):
  8.                 if (100000000 * math.floor(((a**5+b**5+c**5+d**5)**0.2)) == math.floor(100000000*((a**5+b**5+c**5+d**5)**0.2))):
  9.                     e = (a**5+b**5+c**5+d**5)
  10.                     print(a, b, c, d)
  11.                     print("--- %s seconds ---" % (time.time() - start_time))
  12. print(a, b, c, d, int(e**0,2))

Share with your friends:

Print