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.
The first problem is rather easy. We just need to generate a sequence, filter it, and them sum the results. Calculating sums in PowerShell is syntactically awkward as you can see in the different examples.
One item that will probably stand out as odd is the  % begin {} process {} end {}
in which I am effectively creating a stateful function in the pipe.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 
