Sequence: smallest number with exactly n divisors: Difference between revisions

m
(→‎{{header|Python}}: Added a functional composition in Python)
m (→‎Functional Python: Refactored)
Line 917:
def a005179():
'''Integer sequence: smallest number with exactly n divisors.'''
defreturn go(n):
return next(
x for x in count(1)
if n == 1 + len(properDivisors(x))
) for n in count(1)
)
return map(go, count(1))
 
 
9,655

edits