Nick Becker's Iterator/Generator Assignments

Nick Becker's Iterator and Generator assignments. Unsure about Iterator, as it was left mostly the same as when it was pulled from the examples, but it seems to work nonetheless.
eventually, the cost of this generator grows to a considerable amount of cpu time.  Can you think of an algorithm that would be more efficient over time?