Created
October 25, 2018 20:47
-
-
Save gun007/50a7c438957dd7e77d1e1268826ee6e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: latin1 -*- | |
print ("primo 1") | |
for i in range (2,101): | |
x = 0; | |
for j in range (1,101): | |
if i % j == 0: | |
x+=1 | |
if x == 2: | |
print ("primo", i) | |
else: | |
print ("não é primo", i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment