Inscripts interview question

Wap program to check for prime number