Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/python-for-matlab-development
/ main
Function
main
code/dask/prime_seq.py:39–46 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
37
s += sum(primefactors(x))
38
return
s, time.time() - Ts
39
def
main():
40
A = 2
41
B = 10_000_000
42
incr = 1
43
S, dT = my_fn(A, B, incr)
44
print(f
'A={A} B={B}, '
45
f
'{dT:.4f} sec'
)
46
print(f
'S={S}'
)
47
if
__name__ ==
"__main__"
: main()
48
Callers
1
prime_seq.py
File · 0.70
Calls
1
my_fn
Function · 0.70
Tested by
no test coverage detected