Please correct my code what mistake i am getting please

i had made a code on prime using prime sieve and segment sieve please correct my code then sent to me…

@abhay_091,
https://ide.codingblocks.com/s/195449 I have corrected your code.
If you are using sieve at query then what’s the use of using sieve. Instead compute all the primes once and use that list for all queries.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.