Solve Problem 77 in 0.041s

$ time ./problem_77
71

real    0m0.041s
user    0m0.004s
sys     0m0.006s