3591. Check if Any Element Has Prime Frequency
You are given an integer array
nums.Return
trueif the frequency of any element of the array is prime, otherwise, returnfalse.The frequency of an element
xis the number of times it occurs in the array.A prime number is a natural number greater than 1 with only two factors, 1 and itself.
1 | class Solution { |