Fast Enterprises interview question

prime numbers 1-n