Mercurial > hg > euler
view problem5.py @ 14:49c96972949d default tip
#50 rewrite of solution
author | Dominic Cleal <dominic@computerkb.co.uk> |
---|---|
date | Mon, 01 Dec 2008 19:11:55 +0000 |
parents | 1ca695e32f66 |
children |
line wrap: on
line source
import math m = 20 divs = range(int(math.ceil(m / 2)) + 1, m) t = m while True: for d in divs: if t % d > 0: break else: print t exit t += m