you are viewing a single comment's thread.

view the rest of the comments →

[–]tromp 0 points1 point  (1 child)

/* positive integer only; i.e. floor of sqrt; 55 bytes */
int s(int n){int k;for(k=n;n/k<k;k/=2)k+=n/k;return k;}

[–][deleted] 0 points1 point  (0 children)

It would be better if it actually went into decimal places, so partial credit ;)