Micron Technology Interview Question

Write program to check if it is a prime number or not