I am basically testing the if condition for three cases: when n<=100000(m will obviously be less than n) - for this the normal sieve will work.
In case m<=100000 but n is greater than this value - it goes to else part of if (line no 61) and the rest of the code will be executed till n.
In case both are greater than 100000, line 61 will be skipped.
Am i doing some mistake in segmented concept of sieve? Because I now think that may be the reason.
Can you please provide some test cases that may help.
Thanks!!