Is_prime


#1

I am curious as to why my solutions is not working? I have put in different numbers and it seems like it works? I don’t know…


6/15
#2

None is the returned default value, so none of your return keyword is reached for x=0, which makes sense, when x is zero, the loop won’t run (given the loop condition evaluates to false)


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.