jetamors: Yoruichi is really hot (Default)
Jetamors ([personal profile] jetamors) wrote in [community profile] intro_to_cs 2010-01-17 01:52 am (UTC)


Yes, that's correct. If it helps, here's a while loop that would give exactly the same result as my for loop:

i = 3
while (i < candidate/2):                      
    remaindercheck = remaindercheck * candidate%i
    i = i + 1


Let me know if you have any other questions or want me to explain something in a different way. It's so hard to explain math when we can't talk face to face >.<

Post a comment in response:

This community only allows commenting by members. You may comment here if you're a member of intro_to_cs.
(will be screened if not on Access List)
(will be screened if not on Access List)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting