Varuna Pumps interview question

Prime or not, reverse the num