Matlab, <strike>39</strike> 37 bytes ---------------- @(v)~mod(sqrt(sum(divisors(v).^2)),1) Unfortunately, it doesn't work on Octave (on tio) so no tio link. **Note** As @LuisMendo stated, `divisors()` belongs to Symbolic Toolbox.