Pregunta de entrevista de S&P Global

To write a code to give primary numbers using python