SLK Group Interview Question

They asked to write a program to find a prime number.