Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
31
from
sympy
import
primefactors
32
import
time
33
def
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
39
def
main():
40
A = 2
41
B = 10_000_000
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected