added functionality of generating primes upto a certain limit