Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 1740 by Nerdbeard: prime(symbol('x')) never returns http://code.google.com/p/sympy/issues/detail?id=1740
sympy/ntheory/generate.py, line 118, in prime() is: assert n > 0 if 'n' is a symbol, 'n > 0' is a symbolic expression, and so is True. sympy/ntheory/generate.py, line 59, in extend_to_no() is: while len(self._list) < n: if 'n' is a symbol, the same problem applies. Inverting the logic of these lines would kinda correct the problem: assert not (n <= 0) while not (len(self._list) >= n): ...but that seems at least as silly as passing a symbol in the first place. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings -- You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to sympy-iss...@googlegroups.com. To unsubscribe from this group, send email to sympy-issues+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en.