1. You will be given an Array and an integer k
2. You need to print all elements, in ascending order that have a prime frequency greater than k
3. Input is handled for you
4. It is a functional problem ,please do not modify main()
Input Format
Input is handled for you.
Output Format
Print all elements, in ascending order that have a prime frequency greater than k Print -1 if no such element exists
Constraints
1<=N<=1000 1<=K<=10 1<=A[i]<=10000
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
17 3 9 9 8 10 9 10 4 8 2 2 10 10 7 1 2 2 2
Output
2 9