In Sieve of Eratosthenes we sieve the range $[1,N]$ by crossing out 1, then crossing out 2 and multiples of 2, then take 3 and then cross out 3 and multiples of 3 and so on... picking the next uncrossed number as the next prime.
Instead of the range $[1,N]$, if we start with a range $[a,b]$ what is the best approach?
We can start with the first even number in the range which means $a$ or $a+1$. But if $a$ is odd, how do we know whether it is prime or composite (without doing a primality test of course, because we are sieving)?
I am guessing we still have to start the sieving from $2$ to collect primes less than $a$ because we need them to sieve the range $[a,b]$ to eliminate multiples of those primes as this MSE question/answer seems to suggest.
Keep in mind that we are ultimately using the range sieving to see if it contains a factor of $N$. So, the modified method could use GCD computation to throw away $a$ after the GCD returns 1. If not, we have a factor of $N$.
Is there any other trick we can use here?