logicslab 15 Unverified User

Dear Friends,
I am looking a small thing , I need a simple code to check the input whether it's prime , if not can enter same
repeateddly upto get a proper value . Please provide a simple code snippet and help me

Thanks,
Anes