Adds comment describing generation of integers
Refactors 'sieve' function