Write a function to return all prime numbers up to a given number n. | Adobe Interview Question | Practice Free | SkillVee