Project Euler 12
backend improvement