Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ all_factors
Function
all_factors
Python/CP_Templates.py:31–32 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
29
30
31
def
all_factors(n):
32
return
set(reduce(list.__add__,([i, n // i]
for
i in range(1, int(n ** 0.5) + 1)
if
n % i == 0)))
33
34
35
def
fibonacci_modP(n, MOD):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected