Prime Generating improved