Google Interview Question

write an efficient code for finding the prime numbers