Optimizing the Sieve of Eratosthenes: A Case Study.