Skip to content

Instantly share code, notes, and snippets.

@NicolaM94
Last active July 12, 2023 22:13
Show Gist options
  • Save NicolaM94/b01fb72874cb903982b887846fcc5c0c to your computer and use it in GitHub Desktop.
Save NicolaM94/b01fb72874cb903982b887846fcc5c0c to your computer and use it in GitHub Desktop.
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