MCPcopy Create free account
hub / github.com/Apress/python-for-matlab-development / my_fn

Function my_fn

code/dask/my_fn.py:32–37  ·  view source on GitHub ↗
(a, b, incr)

Source from the content-addressed store, hash-verified

30from sympy import primefactors
31import time
32def my_fn(a, b, incr):
33 Ts = time.time()
34 s = 0
35 for x in range(a,b,incr):
36 s += sum(primefactors(x))
37 return s, time.time() - Ts

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected