Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

1 of 2
Jonah
  • 34.1k
  • 4
  • 41
  • 95

J, 9 bytes

1=#@~.@q:

Try it online!

Tests if the uniq ~. of the prime factors q: has length # equal to one 1=

Jonah
  • 34.1k
  • 4
  • 41
  • 95

AltStyle によって変換されたページ (->オリジナル) /