by jphandrigan | Oct 24, 2019 | Programming

Problem 5: 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? #initialize variables x = 1 #function to check if...
by jphandrigan | Oct 20, 2019 | Programming

I skipped a bunch of questions and landed on this one. I’ll revisit the others… have no worries! Euler, again. Source: https://commons.wikimedia.org/wiki/File:Leonhard_Euler.jpg Problem 10:The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.Find the sum...
by jphandrigan | Oct 16, 2019 | Programming

Wow. It’s been a longtime since I’ve made a post here. Let’s just say… life has been hectic. I’ve been spending some time with Python and web scraping. It’s been a whole bunch of fun. There’s no better feeling than setting up...
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): #initiate the counters n = 1 sumTo = 0 #iterate up to 1000, adding natural numbers that are multiples of 3...
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...
by jphandrigan | May 30, 2011 | Linux, Programming

I’m no ninja when it comes to linux, but I do enjoy using openSUSE. I’ve basically been using it as a sort of playground where I have setup a web development env., take regular vacations from Windows, and just to add to my cool factor! One thing that...