Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Mrinank-Bhowmick/python-beginner-projects
/ compute
Function
compute
projects/ProjectEuler/Problem 1/p1.py:4–6 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
2
3
4
def
compute():
5
ans = sum(x
for
x in range(1000)
if
(x % 3 == 0 or x % 5 == 0))
6
return
str(ans)
7
8
9
if
__name__ ==
"__main__"
:
Callers
1
p1.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected