Skip to main content
1 of 2
JosiahRyanW
  • 4.3k
  • 1
  • 17
  • 19

GolfScript, 70 bytes

;1.2{](.2*.*:a@~@*\a(*@)\@}10 2 32?(:b?*@;\{.@[\].~/\~%10*@}b*;;]("."@

Try it online!

Or, actually, don't. It takes WAY too long. Try this one instead that calculates 5 digits.

Uses the Wallis Product, and a custom integer division algorithm.

JosiahRyanW
  • 4.3k
  • 1
  • 17
  • 19