http://www.perlmonks.org?node_id=740066


in reply to Formatting output for multi-page print

See also Spiraling integers and ulam's spiral too slow.