Given an integer array nums, determine whether there exists at least one element whose frequency of occurrence in nums is a prime number.
Return true if at least one such element exists, and false otherwise.
Note: A prime number is an integer strictly greater than
that has no positive divisors other than and itself.
Constraints:
nums.length
nums[i]
Given an integer array nums, determine whether there exists at least one element whose frequency of occurrence in nums is a prime number.
Return true if at least one such element exists, and false otherwise.
Note: A prime number is an integer strictly greater than
that has no positive divisors other than and itself.
Constraints:
nums.length
nums[i]