Python Function Finding Prime Numbers