Project Euler #1

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):...
Project Euler

Project Euler

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