Comments are moderated. It may take a few minutes before your comment appears.
Markdown is supported in your comments.
A smarter prime number generator would cache the previous results, so each new instance does not have to recompute every number from the very beginning. Normally this screams "Use an object!". It can all be done with a single function: