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

Function my_fn

code/dask/prime_dask.py:36–41  ·  view source on GitHub ↗
(a, b, incr)

Source from the content-addressed store, hash-verified

34from dask.distributed import Client
35
36def my_fn(a, b, incr):
37 Ts = time.time()
38 s = 0
39 for x in range(a,b,incr):
40 s += sum(primefactors(x))
41 return s, time.time() - Ts
42
43def main():
44 client = Client('127.0.0.1:8786')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected