MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / is_prime

Function is_prime

LuaSTGPlus/string2enum.py:27–33  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

25 return key[idx]
26
27def is_prime(n):
28 if n <= 1:
29 return False
30 for i in range(2, int(math.sqrt(n)) + 1):
31 if n % i == 0:
32 return False
33 return True
34
35class union_set:
36 def __init__(self, count):

Callers 1

generate_graphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected