Author Archives: Joseph

Project Euler Problem 12 (PHP)

Problem 12 The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms … Continue reading

Posted in PHP, Programming, Project Euler | Tagged , , , | Comments Off

Project Euler Problem 11 (PHP)

Problem 11 In the 20×20 grid below, four numbers along a diagonal line have been marked in red. 08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 … Continue reading

Posted in PHP, Programming, Project Euler | Tagged , , , | Comments Off

Project Euler Problem 10 (PHP)

Problem 10 The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. Script Execution Time: 88.6965 seconds function isPrime($n) { for ($x=2; $x … Continue reading

Posted in PHP, Programming, Project Euler | Tagged , , , | Comments Off

Project Euler Problem 9 (PHP)

Problem 9 A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 = 9 + 16 = 25 = 52. There exists exactly … Continue reading

Posted in PHP, Programming, Project Euler | Tagged , , , | Comments Off

Education and standardized testing

While looking through Hacker News this morning, I came across an article about the education system in China.  The article looks at the lives of four students within the system and weighs the pros and cons of how things are … Continue reading

Posted in Education, Family, Home School, Personal, Public School | Tagged , , | Comments Off

Running a Cub Scout pack.

As the Cubmaster of a Cub Pack, I am responsible along with the Assistant Cubmaster and the Pack Committee to deliver a quality program for the boys.  As part of that job, we need to have trained leaders to run … Continue reading

Posted in Cub Scouts, Personal | Tagged , | Comments Off