>>> from funciodiv import funcio_divisor --ini-enunciat >>> it = funcio_divisor() >>> next(it) # el nombre 1 només té un divisor 1 >>> next(it) # el nombre 2 té dos divisors 2 >>> next(it) # el nombre 3 té dos divisors (com tot nombre primer > 1) 2 >>> next(it) # el nombre 4 té 3 divisors (1, 2 i 4) 3 >>> for i in range(20): # etc. ... print(next(it), end=',') 2,4,2,4,3,4,2,6,2,4,4,5,2,6,2,6,4,4,2,8, --fi-enunciat >>> for i in range(100): ... print(next(it), end=',') 3,4,4,6,2,8,2,6,4,4,4,9,2,4,4,8,2,8,2,6,6,4,2,10,3,6,4,6,2,8,4,8,4,4,2,12,2,4,6,7,4,8,2,6,4,8,2,12,2,4,6,6,4,8,2,10,5,4,2,12,4,4,4,8,2,12,4,6,4,4,4,12,2,6,6,9,2,8,2,8,8,4,2,12,2,8,4,10,2,8,4,6,6,4,4,16,3,4,4,6,