1 | initial version |
Make a dom.sage file containing :
s = str(2^1000)
f = open('filename.txt', 'w')
f.write(s)
f.close()
Then run using sage :
sage dom.sage
and you get a file 'filename.txt' which contains :
0715086071862673209484250490600018105614048117055336074437503883703510511249361224931983788156958581275946729175531468251871452856923140435984577574698574803934567774824230985421074605062371141877954182153046474983581941267398767559165543946077062914571196477686542167660429831652624386837205668069376
on a Linux operating system (with sage locally installed).
For a Windows operating system (I guess from "C: syntax") I don't know.