Fun with Numbers: The PanPrimeDigit Cube Hypothesis

08232017, 09:15 PM
Post: #54




RE: Fun with Numbers: The PanPrimeDigit Cube Hypothesis
(08232017 03:20 AM)DavidM Wrote:(08232017 12:03 AM)Claudio L. Wrote: ... Forget my idea. Seemed as a good starting point but then I realized that: \((n+1)^3 = n^3 + (3n^2 + 3n +1)\) In other words, the distance between one perfect cube and the next is \(3n^2 + 3n +1\). We are talking n around 12 to 16 digits, the distance for n=1e12 is 3e24, versus counting in base4 across many, many numbers in that 3e24 range. So my idea of going backwards would be orders of magnitude slower for large numbers, even if perhaps quick in the low range. There's no point in using it for large numbers. One thing I see is the need for a command to extract individual digits from a number, so I added a DIGITS command to newRPL, where you provide the start and end range (in powers of 10, 0=unity, 1=tens, 2=hundreds, 1=tenths, etc.) and it extracts the digits, without having to go the string route. 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)