Go言語で基数変換

関連 : pythonで10進数からn進数に基数変換 - brainstorm

package main

import (
	"fmt"
	"strconv"
)

import ()

func main() {
	for i := 2; i <= 36; i++ {
		fmt.Println(strconv.FormatInt(10000000, i))
	}
}


実行結果

100110001001011010000000
200211001102101
212021122000
10030000000
554200144
150666343
46113200
20731371
10000000
571016a
3423054
20c187a
148445a
d27e6a
989680
70c715
554c3a
40dhff
32a000
298gfa
1kf33a
1cgkde
16392g
10f000
lmona
im1ba
g7f2o
e40hh
cab3a
apkpk
9h5k0
8e8oa
7gehm
6n89a
5yc1s