Write a code to display the index number of second occurrence of prime number from an array

Please solve this question