Question d’entretien chez Applied Materials

Output all prime numbers up until input n