Пример #1
0
func main() {
	getNextTriangleNumber := misc.GetTriangleNumberIterator()
	divisorLimit := 500

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

	fmt.Println(n)
}
Пример #2
0
func test(n int) {
	fmt.Printf("Divisor count %v = %v\n", n, misc.CountDivisors(n))
}