diff --git a/1ano/1semestre/fp/aula04/isprime.py b/1ano/1semestre/fp/aula04/isprime.py index 44b73e5..b3d0d0c 100755 --- a/1ano/1semestre/fp/aula04/isprime.py +++ b/1ano/1semestre/fp/aula04/isprime.py @@ -1,4 +1,6 @@ def isPrime(n): + if n == 1: + return False for x in range(2, n): if n % x == 0: return False