# Ruby, 25 bytes Math.sqrt(gets.to_i)%1==0 There probably is a shorter way but that's all I found. <a href="https://tio.run/##KypNqvz/3zexJEOvuLCoRCM9taRYryQ/PlNT1dDW1uD/f1MA" title="Ruby – Try It Online">Try it online!</a>