Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

#Java 8, 20 bytes

Java 8, 20 bytes

n->Math.sqrt(n)%1==0

Input is an int.

Try it here.

#Java 8, 20 bytes

n->Math.sqrt(n)%1==0

Input is an int.

Try it here.

Java 8, 20 bytes

n->Math.sqrt(n)%1==0

Input is an int.

Try it here.

deleted 173 characters in body
Source Link
Kevin Cruijssen
  • 136.2k
  • 14
  • 154
  • 394

#Java 8, 2620 bytes

(int n)->Math.sqrt(n)%1==0

(or 20 bytes, Input is an still debatable ):int.

n->Math.sqrt(n)%1==0

Try it here. Try it here.

#Java 8, 26 bytes

(int n)->Math.sqrt(n)%1==0

(or 20 bytes, still debatable ):

n->Math.sqrt(n)%1==0

Try it here.

#Java 8, 20 bytes

n->Math.sqrt(n)%1==0

Input is an int.

Try it here.

Source Link
Kevin Cruijssen
  • 136.2k
  • 14
  • 154
  • 394

#Java 8, 26 bytes

(int n)->Math.sqrt(n)%1==0

(or 20 bytes, still debatable):

n->Math.sqrt(n)%1==0

Try it here.

AltStyle によって変換されたページ (->オリジナル) /