Pregunta de entrevista de Cognizant

I have to do a python program for print a prime number