A sports club has 40 girls and 64 boys. The coach wants teams of the largest possible equal size, each team only girls or only boys, with nobody left out. The club's app uses the first algorithm for gcd: Step 1 finds by checking every from 1 to 40, and Step 2 finds by checking every from 1 to 64.
Counting one divisibility check for each tested, how many divisibility checks does the app make in Steps 1 and 2 together?
