Skip to content

Instantly share code, notes, and snippets.

@psicobyte
Created August 7, 2013 23:06
Show Gist options
  • Save psicobyte/6179816 to your computer and use it in GitHub Desktop.
Save psicobyte/6179816 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
# -*- coding: utf-8 -*-
for numero in range(2,100):
for divisor in range(2,numero):
if numero % divisor == 0:
print numero, 'es múltiplo de', divisor, 'y', numero/divisor
break
else:
print numero, 'es un número primo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment