Memory-Efficient Sieve of Eratosthenes

Implementation of the Sieve of Eratosthenes using bit-level operations to store and manipulate flags in a compact form.

By representing the sieve as a bit array, you reduce memory usage dramatically.