示例#1
0
文件: 12.go 项目: galerina/mycodes
func main() {
	getNextTriangleNumber := misc.GetTriangleNumberIterator()
	divisorLimit := 500

	n := 0
	for n = getNextTriangleNumber(); misc.CountDivisors(n) < divisorLimit; n = getNextTriangleNumber() {
	}

	fmt.Println(n)
}
示例#2
0
文件: 12.go 项目: galerina/mycodes
func test(n int) {
	fmt.Printf("Divisor count %v = %v\n", n, misc.CountDivisors(n))
}