mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2024-11-09 22:08:58 +01:00
11 lines
286 B
Python
11 lines
286 B
Python
|
# Only the non-zero and positive divisors
|
||
|
def divider_list(number):
|
||
|
number_list = []
|
||
|
for index in range(1, number + 1):
|
||
|
if number % index == 0:
|
||
|
number_list.append(index)
|
||
|
return number_list
|
||
|
|
||
|
def solution(number):
|
||
|
return len(divider_list(number)) == 2
|