Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # minreps.py
- import math
- from itertools import permutations
- xy = 800*800
- elements = 5
- pmax = 0
- ddd = {}
- b = (8*8)/2
- while elements <= b:
- okay = 0
- for z in range(3, elements):
- p = elements**z
- if p < xy:
- if p > pmax:
- pmax = p
- ddd[pmax] = (elements, z)
- print('{}:{} = {} combinations'.format(elements, z, p))
- print(pmax)
- elements += 1
- 0
- elements, z = ddd[pmax]
- print('\n\n{}:{} = {} combinations'.format(elements, z, pmax))
- print(b)
- perm = list(permutations(['a','b','c','d','e'], 3))
- for p in perm:
- print(p)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement