Capital One interview question

Was asked to implement an efficient prime number sieve