Ruby, 16 bytes ->n{n**0.5%1==0} Try it online!
posted 3y ago by snail_
# [Ruby], 16 bytes ```ruby ->n{n**0.5%1==0} ``` [Try it online!][TIO-ks5rozud] [Ruby]: https://www.ruby-lang.org/ [TIO-ks5rozud]: https://tio.run/##KypNqvyfZvtf1y6vOk9Ly0DPVNXQ1tag9n9BaUmxQpqeRnpqSbFeSX58puZ/EwA "Ruby – Try It Online"