Sieve & Binary search for finding primes upto 10^8