1
$\begingroup$

I am using Mathemica 14.2.

digit = 10000000; sequence = {6, 4, 0, 6, 2, 8}; SequencePosition[First[RealDigits[Pi, 10, digit]], sequence] 

The code above runs well on digit=10000000.

However, in digit=100000000, the above code stops midway. Is there a way to set it to continue to run calculations?

$\endgroup$
9
  • $\begingroup$ most likely you run out of RAM on the line RealDigits[Pi,10,digit] $\endgroup$ Commented Jun 8 at 2:56
  • $\begingroup$ We have enough RAM. And in the past, up to 300 million digits were well calculated. Is there a limit setting for the amount of computation or time? $\endgroup$ Commented Jun 8 at 3:01
  • $\begingroup$ Is there a limit setting for the amount of computation or time yes, see TimeConstrained and MemoryConstrained and MemoryAvailable[] and MemoryInUse[] btw, I also got kernel to stop in middle, using V 14.2 on windows 10 with 128 GB ram. $\endgroup$ Commented Jun 8 at 3:07
  • $\begingroup$ It was possible to calculate up to 100 million digits on Wolfram Cloud, but 50 million digits are difficult to process on Mathematica Notebook. $\endgroup$ Commented Jun 8 at 3:17
  • $\begingroup$ Why do you calculate RealDigits twice in your code? $\endgroup$ Commented Jun 8 at 12:08

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.