LTM Limited Interview Question

Q: Write a program to check if a number is prime.