Through overwhelming use of my brain powers, I have successfully (albeit, not particularly elegantly) solved three more Project Euler Problems. In Problem 5 I found the smallest integer divisible by all numbers 1 - 20. My solution to this one is TERRIBLE, but it works, so I haven't fixed it yet. Problem 6 I found the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum. I'm pretty happy with my solution to that one, but I'm no expert, and I'm sure all of these can be further simplified. Last on the updates is Problem 8 which came out nearly allright. I could pretty it up a bit, but it's a decent way to muscle through this particular problem, which was to find the greatest product of five consecutive digits in the 1000-digit number given.
Keep in mind that there are much more intelligent humans solving these in much more intelligent ways than I am currently. I just happen to have gone slightly insane, and find it kind of fun to spend my Friday nights at home working on math problems and listening to Phil Ochs. If a version of myself were to time travel to now from the past, I'm sure he would be horrified to the point of self obliteration, and thusly eliminate all possibility of me ever falling into this lifestyle.
Project Euler Solutions
Archives
- January 2010 (2)
- November 2009 (1)
- October 2009 (4)
- September 2009 (2)
- August 2009 (4)
- July 2009 (15)
- June 2009 (21)
- May 2009 (8)
- April 2009 (6)
- March 2009 (11)
- February 2009 (6)
- January 2009 (9)
- December 2008 (2)
- November 2008 (1)
- October 2008 (2)
- September 2008 (12)
- August 2008 (8)
- July 2008 (5)
- June 2008 (4)
- May 2008 (15)
- April 2008 (2)
- February 2008 (1)
- January 2008 (1)
- December 2007 (2)
- November 2007 (2)
- October 2007 (4)
- September 2007 (3)
- August 2007 (3)
- July 2007 (6)
- June 2007 (2)
- May 2007 (5)
- April 2007 (2)
- March 2007 (4)
No comments:
Post a Comment