solution to project euler problem 66 using chakravala method for solving pell equations