Nokia interview question

Code to Find given number is prime or not.