79120044

Date: 2024-10-24 00:10:52
Score: 1
Natty:
Report link

The problem is that you're using i in both loops. Just swap i for something else in the HCF part, and the infinite loop will work fine.

for x in range(1, smaller + 1):
if a % x == 0 and b % x == 0:
    hcf = x
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kazber