Prime Number Python Formula Using For Loop