J, 9 8 bytes
1=#@=@q:
-1 byte thanks to xash
Tests if the self-classify = of the prime factors q: has length # equal to one 1=
Jonah
- 34.1k
- 4
- 41
- 95
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange1=#@=@q:
-1 byte thanks to xash
Tests if the self-classify = of the prime factors q: has length # equal to one 1=