Skip to main content
added 44 characters in body
Source Link
amelies
  • 681
  • 4
  • 7

Julia 1.0, 3838 47 bytes

~a=string.(0:a.^2);!a=any(~a'~(0:a)'.*~a*~(0:a).=="$a")

Try it online!Try it online!

Golfing furtherBased on MarcMush’s answer (tnx for pointing out the error when squaring)

Julia 1.0, 38 bytes

~a=string.(0:a);!a=any(~a'.*~a.=="$a")

Try it online!

Golfing further MarcMush’s answer

Julia 1.0, 38 47 bytes

~a=string.(a.^2);!a=any(~(0:a)'.*~(0:a).=="$a")

Try it online!

Based on MarcMush’s answer (tnx for pointing out the error when squaring)

Source Link
amelies
  • 681
  • 4
  • 7

Julia 1.0, 38 bytes

~a=string.(0:a);!a=any(~a'.*~a.=="$a")

Try it online!

Golfing further MarcMush’s answer