Re: [Tutor] endless loop
"prasad rao" wrote def rr(z,m=1): q=lambda n:m%n==0 s=lambda False : 0 This is always false??? a=filter(s,map(q,range(1,z))) So this is always empty? if not a: So this is always true m+=1 rr(z,m) So you contuinuaslly
Re: [Tutor] endless loop
On 7/5/2010 8:31 AM prasad rao said... hi I am trying problem 6 in projecteuler.org. What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? def rr(z,m=1): q=lambda n:m%n==0 s=lambda False : 0 a=filter(s,map(q,range(1