Initial commit

This commit is contained in:
obscuren
2013-12-26 12:45:52 +01:00
commit 5db3335dce
11 changed files with 669 additions and 0 deletions

20
big.go Normal file
View File

@@ -0,0 +1,20 @@
package main
import (
"math/big"
)
func BigPow(a,b int) *big.Int {
c := new(big.Int)
c.Exp(big.NewInt(int64(a)), big.NewInt(int64(b)), big.NewInt(0))
return c
}
func Big(num string) *big.Int {
n := new(big.Int)
n.SetString(num, 0)
return n
}