Skip to main content
Commonmark migration
Source Link

#MathGolf, 4 bytes

MathGolf, 4 bytes

2√/i 

Try it online.

Explanation:

2√ # Take the square-root of 2 / # Divide the (implicit) input-integer by this i # Cast it to an integer, truncating any decimal values # (after which the entire stack joined together is output implicitly as result) 

#MathGolf, 4 bytes

2√/i 

Try it online.

Explanation:

2√ # Take the square-root of 2 / # Divide the (implicit) input-integer by this i # Cast it to an integer, truncating any decimal values # (after which the entire stack joined together is output implicitly as result) 

MathGolf, 4 bytes

2√/i 

Try it online.

Explanation:

2√ # Take the square-root of 2 / # Divide the (implicit) input-integer by this i # Cast it to an integer, truncating any decimal values # (after which the entire stack joined together is output implicitly as result) 
Source Link
Kevin Cruijssen
  • 136.3k
  • 14
  • 155
  • 394

#MathGolf, 4 bytes

2√/i 

Try it online.

Explanation:

2√ # Take the square-root of 2 / # Divide the (implicit) input-integer by this i # Cast it to an integer, truncating any decimal values # (after which the entire stack joined together is output implicitly as result)