Good Luck... Your code is so unoptimized you can not even dream of getting close to 1000 digits of Pi