Quote Originally Posted by Marvin_The_Martian View Post
What spi does, is save temporary results to hdd/ram which is why it's so tweakable. You won't get far if you only use built in data types you have to store intermediate results somewhere.

Edit:

Or, just combine data types, eg double 'long double' where the first one has prefaced 0's. Actually it's the same as I said above as you're doubling the variables which are used to hold the data, so it will double the ram usage, and at some point the os might start using the swap file for some reason.
The way the algorithm I was using worked, it returned twice the amount of digits calculated each time. That is not good.

Trying a digit extracting method, I can get much better results.
But the method I have now, takes a very long time to calculate 16384 digits of pi (16kb)

But, I have this question.

What does everyone perfer:
a pi calculating benchmark
or a prime calculating benchmark