Posts by user178279 • 1 point
1 post
-
0
votes1
answer129
viewsA: Optimization for code that tests if a number is prime
Simplifying: import sys def programa(): print("=" * 55) num = int(input("\nDigite um número para fazer o teste se o mesmo é primo: ")) einteiro = isinstance(num, int) if num == 1: print("\n1 é…
pythonanswered user178279 1