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
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
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