How to get decimal form of largest known prime?

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

According to latest news the largest known prime is:
                  2**24036583 - 1

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?

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,)

More information about the Python-list mailing list