[ create a new paste ] login | about

Link: http://codepad.org/49YwFhgj    [ raw code | output | fork ]

Python, pasted on Apr 16:
1
2
3
4
5
6
7
8
9
a=0
print int(input("Ingrese numero\n"))
for i in range(1,n+1):
 if(n % i==0):
  a=a+1
if(a==2):
 print("No es primo") 
else: 
 print("si es primo") 


Output:
1
2
3
4
5
Ingrese numero
Traceback (most recent call last):
  Line 2, in <module>
    print int(input("Ingrese numero\n"))
EOFError


Create a new paste based on this one


Comments: