On Wed, Feb 20, 2013 at 7:28 AM, Serhiy Storchaka <storchaka at gmail.com> wrote: > 10-15% faster: > ... num = max(range(2, M + 1), key=g) ... Yes, but 20-30% less clear and readable. Though I do like the idea of playing this code in the key of G Major. ChrisA