Edited prime generator to increase upper limit