I was looking at this article (The Genuine Sieve of Eratosthenes / PDF) about a common functional prime number generator that is mistakenly called the Sieve of Eratosthenes. It is quite complicated, section 2 deals with the performance of the naive algorithm »

I have been meaning to learn ruby for a while and the place I am working now uses a lot so I had another look at it. I read Learn To Program, a simple but good book and found the bit on blocks and procs etc pretty good and wanted to see if I could do »

If p is the perimeter of a right angle triangle with integral length sides, {a,b,c}, there are exactly three solutions for p = 120. {20,48,52}, {24,45,51}, {30,40,50} For which value of p < 1000, is the number of solutions maximised? You may remember »

I am just getting a talk ready for WYLUG on python. I sent Dave the following blurb: Why I love Python: A talk on the programming language Python, in 3 parts (feel free to leave in the interludes if you have had enough) Part 1: Past, Present, Future »

I gave a talk at the second python user group in leeds on Wednesday. It was called “Anatomy Of A Python Program - How Much Can You Do In 0.1 KLOC?”. It is based on Peter Norvigs Sudoku solver. I had been thinking about doing it for WYLUG, possibly as »

I have been meaning for some time to tackle the RubyQuiz problems in Python. The one from yesterday (#148) is quite interesting, taking postfix notated expressions and returning an infix version. For example 2 3 5 + goes to 2 * (3 + 5) I spoilt »