floor log2 by

package main

import (
\x09"fmt"
\x09"math/bits"
)

func main() {
\x09var x uint64
\x09var e error
\x09for {
\x09\x09_, e = fmt.Scanln(&x)
\x09\x09if e != nil {
\x09\x09\x09break
\x09\x09}
\x09\x09fmt.Println(bits.Len64(x) - 1)
\x09}
}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page