Python version
Remove old N constant
Move pentagonal sum checking into pentagonalDiff, solving the problem.
faster approach from the forums