prime number search in python