Question d’entretien chez Nasdaq

Technical question on finding prime numbers