project_euler/lib/num_fns.py
2024-02-06 14:45:15 +01:00

9 lines
166 B
Python

def isDivBy(num, denom):
return num % denom == 0
def fib(i):
if i == 1:
return 1
elif i == 2:
return 2
return fib(i - 1) + fib(i - 2)