Posts by fistadev • 17 points
2 posts
-
1
votes4
answers276
viewsA: Prime numbers with Python
I found the answer!! And I added a few extras. # numeros primos if number > 1: for i in range(2, number): if number % i == 0: print(number, 'não é primo') break else: print(number, 'é primo')…
-
-1
votes4
answers276
viewsQ: Prime numbers with Python
Trying a thousand ways to get this result. Always returns the same thing. number = int(input('Numero: ')) if number >= 1: for i in range(1, number): if number % i != 0: print(number, 'é primo')…