MCPcopy 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

14from primes import is_prime, NUMBERS
15
16class PrimeResult(NamedTuple): # <2>
17 n: int
18 flag: bool
19 elapsed: float
20
21def check(n: int) -> PrimeResult:
22 t0 = perf_counter()

Callers 1

checkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected