HCLTech interview question

Find if number in array is prime or not