removed inefficient prime generator