Add comments

Added comments to the code of the first 5 problems in C.
This commit is contained in:
2019-09-22 17:48:52 +02:00
parent f8cce530b5
commit 7f64f15e89
8 changed files with 104 additions and 43 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/python3
from math import sqrt, floor
from math import sqrt, floor, gcd
from numpy import ndarray, zeros
@ -19,12 +19,6 @@ def is_prime(num):
return True
def gcd(a, b):
if b == 0:
return a
return gcd(b, a%b)
def lcm(a, b):
return a * b // gcd(a, b)