sieve with less closures. @TiarkRompf