The problems are available at Project Euler.
As per the instructions there, please only refer to my solutions once you have already solved the problem yourself. I am posting here for my own reference.
My first priority has been to get a solution . Then it's to get a solution in a 'reasonable' length of time. Then only later might it be elegance and efficiency.