Problem6, problem7

This commit is contained in:
t3xhno
2024-02-06 15:42:22 +01:00
parent 266dd95a41
commit 209d03629f
4 changed files with 60 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
import math
from functools import *
def isDivBy(num, denom):
return num % denom == 0
@@ -24,3 +25,6 @@ def sieve(num):
primes.append(p)
return primes
def prodList(nums):
return reduce(lambda x, y: x * y, nums)