Cognizant Interview Question

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