Optimal Prime Number Generator for prime numbers in given range