Skip to content

Instantly share code, notes, and snippets.

@NicolaM94
Last active July 12, 2023 22:13
Applying findivisor.go to calculate the result
func main() {
c := 1
for {
tn := c * (c + 1) / 2
div := numbertheory.FindDivisor(tn)
if len(div) > 500 {
fmt.Println(tn)
break
}
c++
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment