Skip to content

Instantly share code, notes, and snippets.

@rssh
Created October 10, 2013 08:32
Show Gist options
  • Save rssh/6914963 to your computer and use it in GitHub Desktop.
Save rssh/6914963 to your computer and use it in GitHub Desktop.
int x = 1
int d = 1
while(d != 0) {
d = (s/x - x)/2
x = x+d
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment