Project Euler 461 - Almost Pi

Official link: https://projecteuler.net/problem=461

Note: Code runs in ~600 sec