Skip to main content
added 4 characters in body
Source Link
JosiahRyanW
  • 4.3k
  • 1
  • 17
  • 19

GolfScript, 7070 85 bytes

;1;''!.2.):t{](.2*.+.*:a@~@*\a(*@)\@}10 2t.+.+t+:T 32t..*.*t*?(:b?*@;\{.@[\].~/\~%10*@\~%T*@}b*;;]("."@

Try it online!+15 bytes because I can't read.

Try it online!

Or, actually, don't. It takes WAY too long. Try this one instead thatTry this online instead, which calculates 54 digits.

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

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.

GolfScript, 70 85 bytes

;''!..):t{](..+.*:a@~@*\a(*@)\@}t.+.+t+:T t..*.*t*?(:b?*@;\{.@[\].~/\~%T*@}b*;;]("."@

+15 bytes because I can't read.

Try it online!

Or, actually, don't. Try this online instead, which calculates 4 digits.

Source Link
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.