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.

2
  • The perl one won't work, actually. I mean, besides the obvious reasons, it won't even run. At least on my machine, perl -le 'BEGIN{use bigint}; for (1..1e136) { print $_ . ", "}' fails with Range iterator outside integer range at -e line 1. Which doesn't detract from your post, really. Commented Jun 15, 2020 at 17:31
  • The first perl solution can not work as the .. operator is not overload to work with bigints in perl. You may change it to: perl -e 'use bigint; while ($i++<1e136) { print $i . ", "}; print "\n"' Commented Jun 29, 2020 at 1:09