I will be happy to take criticisms about my work. Also, if you know any other sources that offer such problems, please let us know.
Problem 1 : Multiples of 3 and 5If 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.
Problem 2 : Even Fibonacci numbersEach new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
That's it for now, I'll be back with solutions to next 2 problems soon. *Note: I prefer writing generalized solutions by providing an option to pass arguments to functions whenever possible. The purpose of these posts is not to help you cheat with Project Euler's problems, but rather give you an understanding of how mathematical problems can be solved with programming. Which is why I've not given exact answers, but the code that'll give you correct answer. You are to understand it and type it out yourself to see how it works.