Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 4
    You kinda buried the lead there. You may want to move the ending bit to the top. Commented Feb 22, 2014 at 1:45
  • Just out of interest on my machine: time python -c 'pass' 0m0.025s, time python -c 'print 666' 0m0.087s but time python -c 'x=666' 0m0.028s So most of the time is outputting the large number. Commented Feb 28, 2014 at 18:56
  • Yes, conversion to base 10 takes quadratic time in the number of digits. As an extreme case, try printing one of the larger Mersenne primes. It's very fast to calculate, but takes a long time to print in base 10. Commented Mar 1, 2014 at 5:06