Blame view

1.py 171 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/python

import sys;

sum = 0;
num = int(sys.argv[1]);
for i in range(3,num):
	if(((i % 3) == 0) or ((i % 5) == 0)):
		sum += i;

print "Result is: " + str(sum);