Skip to main content
added 3 characters in body
Source Link
Varon
  • 117
  • 3

Scala, 6868 67 bytes

def j(s:Int)=Math.sqrt((1 to s).filter(s%_<1).map(a⇒a*aa=>a*a).sum)%1==0

Try it online!Try it online!

Scala, 68 bytes

def j(s:Int)=Math.sqrt((1 to s).filter(s%_<1).map(a⇒a*a).sum)%1==0

Try it online!

Scala, 68 67 bytes

def j(s:Int)=Math.sqrt((1 to s).filter(s%_<1).map(a=>a*a).sum)%1==0

Try it online!

Source Link
Varon
  • 117
  • 3

Scala, 68 bytes

def j(s:Int)=Math.sqrt((1 to s).filter(s%_<1).map(a⇒a*a).sum)%1==0

Try it online!