I'm trying to load a large number into Sage for factoring. I believe with the help of the people on this forum I've managed to create the string and read the number back into a string:
Create the String foo=str(frac(pi).n(digits=13048009)) f=open(r"/mnt/c/Users/karen/Desktop/factcipher.txt", "w", encoding="utf8") f.write("%s\n"%foo[2:])
Read Number Back into a String Sage: f=open(r"/mnt/c/Users/karen/Desktop/factcipher.txt", "r", encoding="utf8") Sage: bar=f.readline() Sage: f.close()
I'm now trying to convert it to an integer: Sage: gee=eval("Integer(%s)"%bar)
but it just hangs. Is this a limitation of my laptop. I know for a fact other people have managed to read the number into Sage and factor it, though I don't know their exact process