Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
17
def
main():
18
n = int(input(
'Enter The upper limit of prime numbers: '
))
19
print(sum(takewhile(
lambda
x: x < n,prime_generator())))
20
21
if
__name__ ==
'__main__'
:
22
main()
Callers
1
sol2.py
File · 0.70
Calls
1
prime_generator
Function · 0.70
Tested by
no test coverage detected