Optimality of the logarithmic upper-bound sieve, with explicit estimates