Re: [Tutor] Need help with script for finding pairs of amicable numbers

2010-11-17 Thread Richard D. Moores
I got no response to my post that began this thread 8 days ago. I followed that with a new thread, "List comprehension question" that continued for 60+ posts, and from which I learned a lot -- about optimizing a function (and the importance of timing the various candidates for improvement). The fun

[Tutor] Need help with script for finding pairs of amicable numbers

2010-11-10 Thread col speed
> > -- > > Message: 2 > Date: Tue, 09 Nov 2010 12:35:26 +0100 > From: Stefan Behnel > To: tutor@python.org > Subject: Re: [Tutor] List comprehension question > Message-ID: > Content-Type: text/plain; charset=UTF-8; format=flowed > > Richard D. Moores, 09.11.2010 12:07:

[Tutor] Need help with script for finding pairs of amicable numbers

2010-11-09 Thread Richard D. Moores
Here's what I have so far: . My immediate question is, is there a general way to determine the multiplier of n in line 44? Of course, by trial and error I can find out pretty exactly what it should be to find a pair that I know of. But of course I want to go o