Skip to content

Instantly share code, notes, and snippets.

@genya0407
Created July 28, 2018 09:26
Show Gist options
  • Save genya0407/727af8af1278c436ff477ebcb1af1b5e to your computer and use it in GitHub Desktop.
Save genya0407/727af8af1278c436ff477ebcb1af1b5e to your computer and use it in GitHub Desktop.
package main
import "fmt"
import "math/big"
func main() {
res1 := big.NewInt(1)
for i := 1; i <= 100000; i++ {
res1.Mul(res1, big.NewInt(int64(i)))
}
for j := 0; j < 5; j++ {
fmt.Printf("%s", res1.String()[:15])
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment