Beispiel #1
0
func main() {
	i := new(big.Int)

	// 2^1000 == 1 << 1000
	i.SetString("1", 10)
	i.Lsh(i, 1000)

	fmt.Println(misc.DigitSum(i))
}
Beispiel #2
0
func main() {
	fmt.Println(misc.DigitSum(factorial(big.NewInt(100))))
}