Changed it back so that it runs between the two dimensions given as arguments
inclusive. Also, removed the debugging code which was commented out anyway.

Lastly, added back list sieve.