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 (https://projecteuler.net/) 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 https://projecteuler.net/problem=1

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

My Favorite Articles/posts/blogs of 2014

Following is the list of websites/posts/blogs/articles that I visited in 2014 and liked them for any of various reasons like their writing-style, topic selection, topic coverage, characters in that piece etc, hope you too will like this collection and enjoy it :

General                                             __

  1. 2014 The Year In Pictures
    http://www.nytimes.com/interactive/2014/12/28/sunday-review/2014-year-in-pictures.html 
  2. Best Books of 2014: A Compilation
    http://graphics.wsj.com/best-books-2014
  3. 72 Years Later, Snubbed Captain Credited With Downing German U-Boat
    http://news.nationalgeographic.com/news/2014/12/141217-german-u-boat-u-166-gulf-mexico-archaeology-history/
  4. Aitzaz Hasan: Tributes to Pakistan teenager killed when he stopped a bomber (what a brave soul, a true hero. May he RIP)
    http://www.bbc.com/news/world-asia-25663992
  5. Iranian Fathers And The Diverse Daughters They’ve Raised
    http://www.huffingtonpost.com/2014/10/17/nafise-motlaq-_n_6006030.html Hey Wait, there is more interesting stuff related to Entertainment, Technology,Fun,Sports,Self-grooming and other categories, Continue reading…..