by jphandrigan | Mar 6, 2012 | Programming, School/Learning/Work

Add all the natural numbers below one thousand that are multiples of 3 or 5. Seems simple enough? Here’s my brute force way of answering it (using Python): [sourcecode language=”python”] n = 1 sumTo = 0 while n < 1000: if (n%3 == 0) or (n%5 == 0):...
by jphandrigan | May 31, 2011 | Programming

“Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although mathematics will help you arrive at elegant and efficient methods, the use of a computer and...