Giving TLE, Problem: Deepak and Primes

@babayaga
see the constraints are quite large
1<=T<=10 1<=m<=n<=1000000000, n-m<=100000
so segmented sieve has to be used here

I think you are mixing Deepak and Primes WITH Deepak and Primes ll
I am talking about Deepak and Primes

Can you please reply @aa1
Waiting for your help

@babayaga
try to go through this code to understand

1 Like

Understood, Thank You so much, Marking the doubt as resolved

1 Like