I've used the same code for the Nilakantha Series but, updated the code for Monte Carlo. - Use Turbo Mode.
Nilakantha Series: π = 3 + 4 / (2*3*4) - 4 / (4*5*6) + 4 / (6*7*8) - . . . Monte Carlo: π = 4 + inRadius / ( inRadius + outRadius )