Very briefly, this has four sequences programed, which you can pitch against each other to see which gets closest to p first.
The four methods are:
method 1
method 2
method 3
method 4
(Real Value is p=3.1415926535979323846264338327950288419716939937510...)
Credits: script written by Mike Docker