Skip to content

Instantly share code, notes, and snippets.

@3bugs
Created June 26, 2024 04:33
Show Gist options
  • Select an option

  • Save 3bugs/aa0ddd8883c5b5066763524860082bdd to your computer and use it in GitHub Desktop.

Select an option

Save 3bugs/aa0ddd8883c5b5066763524860082bdd to your computer and use it in GitHub Desktop.
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