[Tutor] Fwd: Problem Euler 26

2008-07-01 Thread Andre Engels
On Sun, Jun 29, 2008 at 10:34 PM, kinuthiA muchanE [EMAIL PROTECTED] wrote: Er... er, that does not exactly work as expected but it narrows the search to only 3 candidates because of the inclusion of the zero: (28, '035714286') (38, '026315789') (81, '012345679') For 28, the digit, in

Re: [Tutor] Fwd: Problem Euler 26

2008-07-01 Thread W W
Just a tidbit: A neat function my friend came up with last year to figure out the length of a whole number (now converted to python for your viewing pleasure): from math import log10 as log from math import floor def findNumberLength(number): number = float(number) x = log(number) x