Algorithm To Find Prime Numbers In Python