GooseterV / Project-Euler

Indentation contains tabs FLK-W191
Style
Minor
2 years ago2 years old
indentation contains tabs
2
3def main():
4	count = 1
5	for i in range(1, 21):6		count *= i // gcd(i, count)
7	return count
indentation contains tabs
4	count = 1
5	for i in range(1, 21):
6		count *= i // gcd(i, count)
7	return count
indentation contains tabs
3def main():
4	count = 1
5	for i in range(1, 21):
6		count *= i // gcd(i, count)7	return count
indentation contains tabs
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
indentation contains tabs
 6		y = smallestPrimeFactor(x)
 7		if y < x:
 8			x //= y
 9		else:10			return x
11print(main())