Improving Prime Number Generator to return 2 as the first prime and have a  reset function