Created
June 26, 2024 04:33
-
-
Save 3bugs/aa0ddd8883c5b5066763524860082bdd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| import math | |
| count = 0 | |
| for a in range(1, 389): | |
| b = 777 - a | |
| if math.gcd(a, b) == 1: | |
| count += 1 | |
| print(f"Number of solutions: {count}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment