Python Prime Number Checking Program