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

3 of 3
added 67 characters in body
Gregory
  • 161
  • 3

Ruby, 25 bytes

Math.sqrt(gets.to_i)%1==0

There probably is a shorter way but that's all I found.

Try it online!

Gregory
  • 161
  • 3

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