Moved the size calculation into the sieving loop.