Smooth base and primes sieving with N quadratic residue + toy primes random generation