I found this popular challenge site with loads of mathematical challenges or problems. You are encouraged to solve them by writing a computer program that will calculate the answer. The first challenges are very easy, but they get harder very quickly and will provide enough challenge even for the best programmer or maths wizard.
So, if you love coding and challenges with a mix of maths, try
http://projecteuler.net/