floor log2 by

package main

import (

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

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)


return to the top page