-
-
Save NicolaM94/b01fb72874cb903982b887846fcc5c0c to your computer and use it in GitHub Desktop.
Applying findivisor.go to calculate the result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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