Avizva Solutions interview question

2. Write a program to check a prime number.