Sankey Solutions Interview Question

write a program to find prime number