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

Advertisements

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…..

A Patheticly Sad incident

In life we come to know of many funny incident, sad events, weird things happening around us, but the incident that I want to share today is super awful.

One of my acquaintances aged 18; lets call her *Elsa, used to attend Pastry and baking school couple of months ago.One day she took a public bus to her institute from home, It was her third week after admission.It was a pleasant morning, she was carrying her baking-accessories-bag having knives, spatulas and other baking stuff in it, enjoying the outside view from window.Suddenly two guys stood up from their seats, came to her and rudely asked her to tell her name and where she lived, she got nervous and afraid, not knowing their intentions she asked them why they were inquiring all this and who were they? Continue reading

Expectations

‘Expectation’ It is a really huge word and even heavier ‘feeling’ to carry on with.What is expectation? sit back and relax and think what does expectation mean? just think, don’t read further for a few seconds, just ask yourself how do you FEEL when you think ‘about’ expectation.yeah it is a bit boring I know because you are not actually feeling this word.Now you want to kill me for overusing this term and for making you bored.but this is actually how your mind, body and brain feel when you have expectations not only from outside world but from yourself too.

Most of the people would say expectations are real but I beg to differ, expectation is a bit overrated, unrealistic approach towards life, situations and people.sometimes it is rather that harsh negative feeling, when person themselves don’t willing to take action, when they are afraid or lazy to take steps to get results, Let me explain it further by using an example,Some days back one of my colleagues’ mother passed away, I couldn’t make it to the funeral( In fact none of our colleagues could attend the funeral), so I planned to visit her a few days later to offer condolence. When I came to office next day Continue reading