Skip to content

Instantly share code, notes, and snippets.

>>> import sys
>>> sys.path
['', '/usr/local/lib/python2.3', '/usr/local/lib/python2.3/plat-linux2',
'/usr/local/lib/python2.3/lib-tk', '/usr/local/lib/python2.3/lib-dynload',
'/usr/local/lib/python2.3/site-packages']
import sys
sys.path.append('/www/python/')
from distutils.core import setup
setup(name="Aplicacion de ejemplo",
version="0.1",
description="Ejemplo del funcionamiento de distutils",
author="Raul Gonzalez",
author_email="zootropo en gmail",
url="http://mundogeek.net/tutorial-python/",
license="GPL",
scripts=["ejemplo.py"]
py_modules=["apoyo"]
def es_primo(numero):
for i in range(2, numero):
if numero%i == 0:
return False
return True
lista = []
for i in range (2, 10000):
if es_primo(i):