prime number program in python using for loop