Optimizing Python code for Project Euler #5 (LCM of all numbers from 1 to 20)
Your intent is to terminate the loop when all entries in table become 1. This

while sum(table) &gt; len(table):


is a rather obscure way of expressing that intent. I suggest instead

while max(table) &gt; 1:


or the more explicit and short-circuiting

while any(x &gt; 1 for x in table):