Snake case function name
This commit is contained in:
parent
f32701fa2d
commit
b805ed04ba
4
0005.py
4
0005.py
@ -1,7 +1,7 @@
|
|||||||
from collections import Counter
|
from collections import Counter
|
||||||
from functools import reduce
|
from functools import reduce
|
||||||
|
|
||||||
def findPrimeFactors(n):
|
def find_prime_factors(n):
|
||||||
factors = []
|
factors = []
|
||||||
|
|
||||||
i = 2
|
i = 2
|
||||||
@ -21,7 +21,7 @@ def divisible(rng):
|
|||||||
factors = None
|
factors = None
|
||||||
|
|
||||||
for num in rng:
|
for num in rng:
|
||||||
nums = findPrimeFactors(num)
|
nums = find_prime_factors(num)
|
||||||
count = Counter(nums)
|
count = Counter(nums)
|
||||||
|
|
||||||
if (factors == None):
|
if (factors == None):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user