Suppose we have a large (say, one million) system of congruence inequalities of the form
$n \not\equiv x_i\ (\textrm{mod}\ p_i)$
where $n$ is unknown, $x_i$ are known and $2 \le p_i \le 10007$ are prime numbers. Is there an efficient way to find the $n \in [1, u]$ for some upper limit $u$ that satisfy this system of inequalities?
Edit: I'm looking for a way that would allow me to not look individually at the substantial portion of integers in $[1,u]$ that do not satisfy the equations, and thus be able to use a higher upper limit $u$ than would be possible if I had to loop through all of them.
Note that the system can, as an example, forbid all numbers that are divisible by any of the small primes, so if there is no efficient method to iterate through numbers not divisible by 2, 3, 5, 7, 11, ..., 10007, that would imply there is no efficient solution to this problem either. However, these constraints go further; they may forbid up to $p-1$ of the modulo classes of each prime $p$.