Anonymous user
EKG sequence convergence: Difference between revisions
→Python: Using prime factor generation: Use next() instead of __next__()
(→{{header|Python}}: Add method using math.gcd) |
(→Python: Using prime factor generation: Use next() instead of __next__()) |
||
Line 226:
while True:
while not min_share_pf_so_far(last_pf, so_far):
so_far.append(
yield found[0], [n for n, _ in so_far]
last, last_pf = found
Line 234:
ekg = [EKG_gen(n) for n in ekgs]
for e in ekg:
differ = list(takewhile(lambda state: not all(state[0] == s for s in state[1:]),
islice(zip(*ekg), limit-1)))
|