Sean Ross wrote: >>xrange(100, sys.maxint), >>since you have to walk through the items in that range to see if n is in >>there, and that's a large range. > > > Hmm, I don't think what I said there is correct, please disregard. I think you're right though: 90000000 in xrange(1,sys.maxint) takes a long time to complete.... --Irmen