Make compatible with bit_sieve