Skip to content

Commit

Permalink
Merge pull request #19 from abranov/master
Browse files Browse the repository at this point in the history
lib10
  • Loading branch information
sdelquin committed Apr 19, 2012
2 parents 3ac5101 + f557f58 commit 74864ae
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib10.py
@@ -0,0 +1,14 @@
def f10(x,y):
"""hace una suma y calcula si el resultado es primo"""

suma=x+y
actual=2
es_primo=True
while actual<suma:
if x%actual==0:
es_primo=False
actual=actual+1
if es_primo:
return "x es primo"
else:
return "no es primo"

0 comments on commit 74864ae

Please sign in to comment.