Project Euler fun.