Fiddled with lagrange polynomials.
Solved ProjectEuler/101