Odd sum

Write a function @odd_sum(a, b)@ that gets two integers aa and bb greater than zero and returns the sum of the odd integers nn that are not multiple of bb and 0<na0 < n\le a. For instance @odd_sum(11, 3)@ is 1+5+7+11=241 + 5 + 7 + 11 = 24.

Sample session

Problem information

Author: ProAl

Generation: 2026-01-25T16:33:37.356Z

© Jutge.org, 2006–2026.
https://jutge.org