Skip to content

Commit

Permalink
Update 17. Number of Pairs with GCD Not Equal to 1.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SamirPaulb committed Dec 4, 2022
1 parent 9bdf239 commit 64d233e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 22_Math/17. Number of Pairs with GCD Not Equal to 1.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

for i in range(maxElem, 1, -1):
cntA = cntB = subtract = 0
for j in range(i, maxElem + 1):
for j in range(i, maxElem+1, i):
cntA += freqA[j]
cntB += freqB[j]
subtract += dp[j]
Expand Down

0 comments on commit 64d233e

Please sign in to comment.