You are viewing a single comment's thread. Return to all comments →
This is much more efficient way:
function strangeCounter($t) { $scnt = 3; while ($t+2 >= $scnt) $scnt *= 2; $scnt /= 2; return $scnt-($t - $scnt+2); }
Seems like cookies are disabled on this browser, please enable them to open this website
Strange Counter
You are viewing a single comment's thread. Return to all comments →
This is much more efficient way: