Monthly Archives: July 2010

Checking Prime Numbers

Now that we have a function for generating primes, the next library function we will need is to check whether a given number is prime. The basic method for checking whether a given number n is prime is to use … Continue reading

Posted in Mathematics | Tagged , | Leave a comment

Generating Prime Numbers

A prime number is a natural number which has exactly two distinct natural number divisors: 1 and itself. Prime numbers appear in many of the problems in Project Euler, so I thought it would be a good idea to create … Continue reading

Posted in Mathematics | Tagged , | Leave a comment

Favourite Films:Lord of the Rings

What can I say? When this was released, I, together with millions of other fans, was waiting for the usual Hollywood hatchet job on a beloved book.  However, director Peter Jackson has done a wonderful job and stayed true to … Continue reading

Tagged , | Leave a comment

Star Trek: The Next Generation

I remember watching Star Trek:TNG when it first aired and I thoroughly enjoyed it.  I thought I would try and rediscover it by watching the complete series from the start. I may be remembering it through rose-coloured glasses but so far I … Continue reading

Posted in Television | Tagged | 2 Comments

Project Euler: Problem 2

Problem 2 of Project Euler is: Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, … Continue reading

Posted in Mathematics | Tagged , | Leave a comment