kyu_4.sum_by_factors package
Submodules
kyu_4.sum_by_factors.sum_for_list module
Solution for -> sum_for_list function.
Created by Egor Kostan. GitHub: https://github.com/ikostan
- kyu_4.sum_by_factors.sum_for_list.sum_for_list(lst: list) list[source]
Sorting an array by increasing order.
Given an array of positive or negative integers I= [i1,…,in] the function have to produce a sorted array P of the form:
[ [p, sum of all ij of I for which p is a prime factor (p positive) of ij] …]
P will be sorted by increasing order of the prime numbers.
- Parameters:
lst – an array of positive or negative integers
- Returns:
sorted array P
kyu_4.sum_by_factors.test_sum_for_list module
Testing sum_for_list function.
Created by Egor Kostan. GitHub: https://github.com/ikostan
Module contents
Sum by Factors package.