Actually writebin was discussed in the link I gave earlier -- it's not a problem. The problem is in reading numbers stored as text, usually when they come from some system other than gp.

Charles Greathouse
Case Western Reserve University

On Tue, May 24, 2016 at 11:39 AM, Bill Allombert <Bill.Allombert@math.u-bordeaux.fr> wrote:
On Tue, May 24, 2016 at 09:12:43AM -0400, Charles Greathouse wrote:
> Yes, but if you don't have a special formula and all you have is a string,
> that doesn't help.

Well, you can do:
s=Str(10^10^7);N=fromdigits(apply(x->x-48,Vec(Vecsmall(s))));

My point was that the fast algorithm is already implemented,
but that the parser does not use it for historical reason.

> Note: this was discussed on the Mersenne forum, starting here:
> http://www.mersenneforum.org/showthread.php?p=434341#post434341

Can you reproduce the problem with writebin ?

Cheers,
Bill.