#3591
Check if Any Element Has Prime Frequency
pupil · 365 · lc easy +23 · 62.5% accepted · 67 likes · top 64%
Description
Given an integer array nums, return true if any element has a prime occurrence count; otherwise return false.
The occurrence count of element x is the number of times it appears. A prime is any integer greater than 1 whose only divisors are 1 and itself.
Code
1
2
3