func main() { getNextTriangleNumber := misc.GetTriangleNumberIterator() divisorLimit := 500 n := 0 for n = getNextTriangleNumber(); misc.CountDivisors(n) < divisorLimit; n = getNextTriangleNumber() { } fmt.Println(n) }
func test(n int) { fmt.Printf("Divisor count %v = %v\n", n, misc.CountDivisors(n)) }