first commit

This commit is contained in:
=
2024-02-07 15:06:50 +01:00
commit af02e453c1
55 changed files with 2166 additions and 0 deletions

13
p5/solution.py Normal file
View File

@@ -0,0 +1,13 @@
from math import gcd
def solution(n):
solution = 1
for i in range(n):
solution = lcm(solution, i+1)
return solution
def lcm(a, b):
return a*b // gcd(a, b)
print(solution(20))