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 Revisions

1 of 2
Stef
  • 957
  • 4
  • 16

Python 3.8 (pre-release), 40 bytes

This one works with python integers, giving the correct result even for arbitrarily large integers. Always rounds down.

lambda x:isqrt(x*x//2)
from math import*

Try it online!

Stef
  • 957
  • 4
  • 16

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