Python Test For Prime Number Using While Loop