Odd Primes Mask: `if is_prime(2*k+1) 1 else 0`. It can be implemented by Bitset in sagemath or bitarray in Python.
Sieve of Eratosthenes by OddPrimesMask