Mphasis interview question

Program to write prime number