added another prime generator function