Largest prime factor – Project Euler Problem 3

Hey there! In this post you will find the solution of third problem of Project Euler.You can find solutions of first two problems here

Problem Statement:

The prime factors of 13195 Continue reading

Sum of Even Fibonacci numbers till four million – Project Euler Problem 2

As promised, today I am posting the solution of second problem presented in Project Euler, you can find other solved problems here

Problem statement:

Each 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 Continue reading

Multiples of 3 or 5 below 1000- Project Euler Problem 1

Hey guys! today while surfing I found a reference to the Project Euler website ( and I found it really really interesting.The questions are a combination of maths and computer programming.Some of the puzzles are easy to solve and others might take a longer time, but trust me it is a lot of fun!
By now, within an hour I have solved 3 Problems whilst doing other things. I have started this series to post solution of problems presented in Project Euler. In this post I will give you the solution of very first Problem of Project Euler that is

Problem statement:

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 Continue reading