package main
import (
"fmt"
)
func main() {
for n := 2; n < 64; n++ {
for b := 2; b <= n; b++ {
s:="";m:=n;
for m > 0 {
z := 0;
q := m % b;
if q > 9 {
z = 39;
}
s=string(48+z+q)+s;
m/=b;
}
fmt.Print(s);
if b == n {
fmt.Print("\n");
} else {
fmt.Print(" ");
}
}
}
}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).