Algorithms for Prime Generating in increasing efficiency