Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/fluentpython/example-code-2e
/ PrimeResult
Class
PrimeResult
20-executors/primes/proc_pool.py:16–19 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
14
from
primes
import
is_prime, NUMBERS
15
16
class
PrimeResult(NamedTuple):
# <2>
17
n: int
18
flag: bool
19
elapsed: float
20
21
def
check(n: int) -> PrimeResult:
22
t0 = perf_counter()
Callers
1
check
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected