Euler 99.

Sadly it's pretty fucking ugly.