MCPcopy Create free account
hub / github.com/AxlLind/AdventOfCode / f

Function f

2018/src/19.py:41–42  ·  view source on GitHub ↗
(n: int)

Source from the content-addressed store, hash-verified

39# 35: jump 1
40
41def f(n: int) -> int:
42 return sum(d+n//d for d in range(1, int(n**0.5)+1) if n % d == 0)
43
44@aoc.main('19')
45def main(indata: str):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected