Coding challenge

Write some code that uses this formula to compute $\pi$:

$\pi=\sum\limits_{n=1}^\infty\frac{1}{n^3}\left(\frac{-238}{n+1}+\frac{285/2}{2n+1}-\frac{667/32}{4n+1}-\frac{5103/16}{4n+3}+\frac{35625/32}{4n+5}\right)$

Type your code here:


Lua reference

See your results here:

Show a friend, family member, or teacher what you've done!

Here is a share link to your code: