problem 6 uses less memory now.

Before pe6.py would use > 2GB of memory when n was extremely large. Now,
it uses ~ 3MB of memory on all values of n.