-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
There is an indention error in the code just over halfway down page 147. The code is not in the listing but below it. The code after the while should be indented.
trial_factor = 2
while trial_factor < value:
if value % trial_factor == 0:
is_prime = False # Found a factor
break # No need to continue; it is NOT prime
trial_factor += 1 # Try the next potential factor
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels