CitiusTech interview question

Max and 2nd max number in array. Prime number.