Question: Project Euler 1

I've been trying to solve Project Euler's first problem: If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000. I've come up with: natural:=proc(n); local i,s; s:=0; for i from 1 to n do if irem(i,3)=0 or irem(i,5)=0 then s:=s+i fi od; return s; end; but I also get the error message: "Error, unexpected `local` declaration in procedure body" Could you please tell me where I've gone wrong? Thanks in advance
Please Wait...