I recently attempted many of the simpler Project Euler problems, and decided it would be good to write down my thinking process. If you don't know, Project Euler is a collection of programming problems with a heavy emphasis on mathematics. They highly discourage sharing the answers since they want you to solve the problems by yourself, but since answers are already scattered all over the Internet it's up to you to challenge yourself and avoid spoilers. Consider yourself warned - this post contains solutions and discussions thereof.
Problem statement: Add all the natural numbers below one thousand that are multiples of 3 or 5.
Thursday, March 17, 2011
One of the features of the Opera web browser which I really like and use often is the ability to do different search queries directly in the URL bar. Need to look up an address on Google Maps? Look up a word from dictionary.com? How about search for something using Google or Yahoo? Opera has some very handy shortcuts for these.