Tech Mahindra Interview Question

Q: Write a program to check whether a number is prime number or not