Author Archives: Dougie

Sum of all the primes below two million

The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. Seemed pretty straight forward, loop through all numbers up to 2,000,000 – if … Continue reading

Posted in Coding | Tagged , , | 2 Comments

Pythagorean triplet

Project Euler again, this time its problem 9. A Pythagorean triplet is a set of three natural numbers, abc, for which: For example: . There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product abc. My first … Continue reading

Posted in Coding | Tagged , , , | Leave a comment

The 10001st prime number

Project Euler time again, I’ve come out of sequence – here’s problem 7. Continue reading

Posted in Coding | Tagged , , , | Leave a comment

Running injuries

My Dailymile report is looking a little sorry for itself this week as I’ve picked up an injury. Tendinitis – doctor recommends two weeks off running, anti-inflammatories, ice and rest. He suggested investigating my running shoes too, so I went … Continue reading

Posted in Running | Tagged | Leave a comment

Largest prime factor of a composite number

Project Euler problem 3 – largest prime factor of a composite number. Continue reading

Posted in Coding, Computing, Open University | Tagged , , , | Leave a comment

Sum of all even Fibonacci terms below 4 million

The second Euler problem concerns the Fibonacci sequence, which for anyone doing MS221 is the basis of module A1. Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, … Continue reading

Posted in Coding | Tagged , , | Leave a comment

Find the sum of all the multiples of 3 or 5 below 1000

Project Euler’s first problem. Continue reading

Posted in Coding | Tagged , , , | 1 Comment

Finally succeeding?

I read an article by James Somers at The Atlantic called “How I Failed, Failed, and Finally Succeeded at Learning How to Code”. Continue reading

Posted in Coding, Computing, Open University | Tagged , , , | Leave a comment

Completing BSc (Honours) Computing and IT

With ten years remaining in my contract and the government’s intentions unclear, I’ve decided to focus on completing the BSc (Honours) Computing and IT (B62). Continue reading

Posted in Computing, Open University | Tagged , , , , , , | Leave a comment

Running

Since I got back at the end of May I’ve been running further, increasing to around 22 miles a week. Annoyingly, I’ve picked up what I suspect is Tendinitis although I’m not sure which of the tendons it is in my … Continue reading

Posted in Running | Tagged | Leave a comment