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 5
Noodle9
  • 20.4k
  • 3
  • 23
  • 47

Python 3, 89 bytes

lambda s:p(len(s))and p(sum(ord(c)&31for c in s))
p=lambda n:all(n%i for i in range(2,n))

Try it online!

Noodle9
  • 20.4k
  • 3
  • 23
  • 47

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