This website works better with JavaScript.
Explore
Help
Sign In
mitchellhansen
/
project-euler
Watch
1
Star
0
Fork
You've already forked project-euler
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99b7386d93
master
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from '99b7386d93'
${ noResults }
project-euler
/
problem_1.py
14 lines
135 B
Raw
Blame
History
import
math
sum
=
0
for
x
in
range
(
0
,
1000
)
:
if
x
%
3
==
0
:
sum
+
=
x
elif
x
%
5
==
0
:
sum
+
=
x
print
(
sum
)
Reference in new issue
View Git Blame
Copy Permalink