Formula To Find Prime Numbers In Python