1
$\begingroup$

How do I get mathematica to display 33141015 zeroes and a 2

I've tried using

2*10^-33141016

but it just gives me scientific notation

Is there a manual way to generate a string that looks like this:

0000000000000000000000000000000000000000000...2

It's very important to my work I'm doing on finding the next prime with over (10^(10^8)) digits

$\endgroup$
  • 1
    $\begingroup$ Are you serious? To "Display" such a thing would result in a string that was literally miles long... As far as "a manual way", sure - hold down the zero key. At normal auto-repeat rates, should be done in a month or so. In any case, I'll let you know when 1*^33141015 + 2 updates on my display. In about a week... $\endgroup$ – ciao Feb 15 '15 at 5:30
  • 1
    $\begingroup$ something like StringJoin@ConstantArray["0", 1000] <> "2"? $\endgroup$ – Harry Feb 15 '15 at 5:33
  • 1
    $\begingroup$ possible duplicate of Constructing a list that includes a leading zero (01,02,03 ... 55, 56, etc.). Try IntegerString[2, 10, whatever] $\endgroup$ – Kuba Feb 15 '15 at 8:39
3
$\begingroup$
IntegerString[2,10,33141015+1]
$\endgroup$
3
$\begingroup$
PaddedForm[2, 33141015, NumberPadding -> {"0", "0"}]

Will do it, well, that's the command to do it. Not responsible for monitor bursting into flames, etc.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.