Sankey Solutions interview question

write a program to find prime number