I want to test the performance of some code using an exponentially increasing value. So that as an extra digit is added to the numbers_size the increment is multiplied by 1
Using a generator expression:
max_exponent = 100 for i in (10**n for n in xrange(1, max_exponent)): test(i)