Removed some unneeded temporaries from p+1 factoring.