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

Function my_fn

code/dask/prime_seq.py:33–38  ·  view source on GitHub ↗
(a, b, incr)

Source from the content-addressed store, hash-verified

31from sympy import primefactors
32import time
33def my_fn(a, b, incr):
34 Ts = time.time()
35 s = 0
36 for x in range(a,b,incr):
37 s += sum(primefactors(x))
38 return s, time.time() - Ts
39def main():
40 A = 2
41 B = 10_000_000

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected