Skip to main content
1 of 2
DimChtz
  • 967
  • 5
  • 13

Matlab, 39 bytes

@(v)mod(sqrt(sum(divisors(v).^2)),1)==0

Unfortunately, it doesn't work on Octave so no tio link.

DimChtz
  • 967
  • 5
  • 13