Optimized Prime Sieve (ASM)