Bitwise interview question

Write the code for finding whether the given number is prime or not