How to get decimal form of largest known prime?

Claudio Grondi claudio.grondi at freenet.de
Fri Jun 11 01:30:28 CEST 2004


According to latest news the largest known prime is:
                  2**24036583 - 1
(right?)

Do someone of you know how long would it take on
a 2.8 GHz Pentium 4 machine to write a  _decimal_  form
(hexadecimal form can be written in less than one second)
of this prime to a file and what should be the Python code
to use for it?

Claudio
P.S. file.write( '%i' % (2**24036583 - 1,) )
takes 100% CPU for a long time without any result
and the critical part is the '%i' % (2**24036583 - 1,)
conversion.





More information about the Python-list mailing list