MCPcopy 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
7def main():
8 print(primeCheck(37))
9 print(primeCheck(100))
10 print(primeCheck(77))
11
12if __name__ == '__main__':
13 main()

Callers 1

PrimeCheck.pyFile · 0.70

Calls 1

primeCheckFunction · 0.70

Tested by

no test coverage detected