4 count = 1
5 for i in range(1, 21):
6 count *= i // gcd(i, count)
7 return count
3def main():
4 count = 1
5 for i in range(1, 21):
6 count *= i // gcd(i, count)7 return count
2
3def main():
4 count = 1
5 for i in range(1, 21):6 count *= i // gcd(i, count)
7 return count
1from math import gcd, prod
2
3def main():
4 count = 15 for i in range(1, 21):
6 count *= i // gcd(i, count)
7 return count
5 while True:
6 y = smallestPrimeFactor(x)
7 if y < x:
8 x //= y 9 else:
10 return x
11print(main())
Statements use indentations that are not standard four spaces. PEP 8 recommends 4 spaces to be used as single indent.