MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / main

Function main

project_euler/problem_10/sol2.py:17–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 num+=1
16
17def main():
18 n = int(input('Enter The upper limit of prime numbers: '))
19 print(sum(takewhile(lambda x: x < n,prime_generator())))
20
21if __name__ == '__main__':
22 main()

Callers 1

sol2.pyFile · 0.70

Calls 1

prime_generatorFunction · 0.70

Tested by

no test coverage detected