Is_prime


#1


I can't seem to figure out what is wrong with my code. I am getting none as a response to the numbers I input. Is it my spacing that is causing the error?
Any help will be appreciated!


Replace this line with your code.


#2

Hey! Try printing your function to the console like this:

print is_prime(8)

And your for-loop should be one indent less. It will never be reached with the position it currently has. (After a return statment)


#5

There might be a problem with the indentation, please post your code like this:

 ```
 your code
 ```

#6

2 posts were split to a new topic: 6. is prime


#7

@phlangabeza, i moved yours to your own topic