Google interview question

write an efficient code for finding the prime numbers