Since most here are of a programing bent Project Euler (projecteuler.net) may be of help in that quest.