Project Euler is one of the go-to answers to this type of question. Might be worth a google search.