[v3] 1-liner: count odd divisors (the naive way) solution in Clear category for Count Consecutive Summers by Phil15
# Third version: count odd divisors
# Well I saw that what we want is equal to the number of odd divisors of n so...
count_consecutive_summers = lambda n: sum(not n%k for k in range(1, n+1, 2))
Dec. 5, 2018