Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ main
Function
main
maths/PrimeCheck.py:7–10 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
5
return
all(number % i
for
i in range(3, int(math.sqrt(number)) + 1, 2))
6
7
def
main():
8
print(primeCheck(37))
9
print(primeCheck(100))
10
print(primeCheck(77))
11
12
if
__name__ ==
'__main__'
:
13
main()
Callers
1
PrimeCheck.py
File · 0.70
Calls
1
primeCheck
Function · 0.70
Tested by
no test coverage detected