Apr-19-2018, 04:05 AM
Hi,
This is my first post so any help is cool. I'm working with numbers that are 12 to 24 million digits long. What I'm trying to do in Python is run this code.
If its code would it be memory and would anyone know a few lines of code to help me? Check this site out it will give you an idea of what I'm doing.
https://www.thonky.com/digital-root-calculator/
This is my first post so any help is cool. I'm working with numbers that are 12 to 24 million digits long. What I'm trying to do in Python is run this code.
def digit_root(n): return (n - 1) % 9 + 1 if n else 0What this does on small numbers is finds its digital root from 1 through 9. So a number like this 8812 equals 1. 1 is the digital root of 8812. However on very large number like a 13 million digit number the shell locks up. Do guys know if this is a code issue, shell issue or hardware issue?
If its code would it be memory and would anyone know a few lines of code to help me? Check this site out it will give you an idea of what I'm doing.
https://www.thonky.com/digital-root-calculator/
![[Image: my-pc-hardware.png]](https://voynichcipher.files.wordpress.com/2018/04/my-pc-hardware.png)