Compute 30000 digits of the mathematical constant π, with the fastest code. Your code can only do integer arithmetic, possibly with arbitrary pricision. Any other form of representing a number in a computer are not allowed, including floating points, fixed points, rational numbers.

Implement in any computer programming language that I can run in my 64 bit Linux machine. You should provide your compiler optimization options if any. I am ready to download a new compiler or language runtime to run your code, given that I am not spending any money.

The code that completes and prints the output in the shortest time wins! I will measure the running time with the `time` command.

note 1: The program should be single threaded.<br>
note 2: With 3.14, the number of digits is 3; with 3.1415, 5, and so on.