Issue 1740 in sympy: prime(symbol('x')) never returns

2009-12-03 Thread sympy
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 expressi

Re: Issue 1740 in sympy: prime(symbol('x')) never returns

2012-03-01 Thread sympy
Updates: Status: Fixed Comment #2 on issue 1740 by smi...@gmail.com: prime(symbol('x')) never returns http://code.google.com/p/sympy/issues/detail?id=1740 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google Groups "sympy-is

Re: Issue 1740 in sympy: prime(symbol('x')) never returns

2011-05-06 Thread sympy
Updates: Labels: EasyToFix Comment #1 on issue 1740 by smi...@gmail.com: prime(symbol('x')) never returns http://code.google.com/p/sympy/issues/detail?id=1740 change the assertion from assert n > 0 to an if: if int(n) <= 0 or int(n) != n: raise ValueError('n must be a posi