Mphasis Interview Question

Program to write prime number