Hi All

I came across a Perl implementation of Infinite Lists the other day, and was wondering about implementing it in python.

The specific example was to generate the first 3000 Hamming numbers, that is numbers of the form 2**i*3**j*5**k for i,j,k>=0.

I implemented something similar to their approach as follows:
Code:
from time import time
startTime=time()

def getHeads(Hamming,prods,inds):
...