[python] Simple prime number generator in Python