Wipro interview question

Prime number program