79163365

Date: 2024-11-06 16:10:56
Score: 1.5
Natty:
Report link

Check out a more simplified solution.

for i in range(200): # from the question x is less than 200.
    if (i % 5 == 2) and (i % 6 == 3) and (i % 7 == 2):
        print(i)
        break

Where we have used break to avoid further unnecessary computation after the number is found.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Prince Mensah