Problem6, problem7
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user