Results of Comment Search

Search:    Place:    Show:

Title User Message Date Posted
What is wrong with my code? Forlaie I tried testing it with multiple different numbers and it seems to work for me, but it always gives me a traceback error. What am I doing wrong? Jul 12, 2020 - 5:44:53 pm UTC
Re: Why am I getting it wrong? jargon Apr 11, 2018 - 3:34:21 am UTC
Re: Why am I getting it wrong? UnderminedExplosion rubber ducking??? Apr 08, 2018 - 3:48:32 am UTC
Re: Why am I getting it wrong? spencereir Your code is clobbering up variables. Look at the variable names you are using on lines 2, 5, 9. Then try rubber-ducking your code. What actually happens when it breaks out of the for loop (not what ... Jan 01, 2016 - 10:28:44 pm UTC
Re: Typo maybe?? spencereir iff is shorthand for "if and only if" since having two divisors is sufficient and necessary for being prime, iff is the correct term here edit: read here Jan 01, 2016 - 10:26:28 pm UTC
Why am I getting it wrong? royanitra04 My code works on my interpreter but not on the PEG Judge. Please tell me why. Jan 01, 2016 - 10:05:56 pm UTC
Typo maybe?? royanitra04 Uhh... well I was scanning through the question and I think there's a typo. "Remember: an integer is prime iff (if and only if) it has exactly two divisors: 1 and N." I think it should be "if (if an... Jan 01, 2016 - 10:04:27 pm UTC
Re: Re: ... Dmen555 thanks ^^ Apr 22, 2012 - 6:33:06 pm UTC
Re: ... jargon The full traceback is as follows: Traceback (most recent call last): File "./a", line 25, in if prime == False: NameError: name 'prime' is not defined Apr 22, 2012 - 5:19:49 am UTC
... Dmen555 why does it give me a traceback.... T_T does it not allow modules? Apr 21, 2012 - 7:34:42 pm UTC