Reka interview question

Write a program for Prime num