In Sage 5.3, the function prime_powers behaves a little strange:
sage: prime_powers(4,10)
[4, 5, 7, 8, 9]
# As expected
sage: prime_powers(5,10)
[7, 8, 9]
# 5 isn't a prime power anymore???
# And now things become even worse:
sage: prime_powers(7,10)
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
/home/mueller/<ipython console> in <module>()
/home/mueller/local/sage-5.3/local/lib/python2.7/site-packages/sage/rings/arith.pyc
in prime_powers(start, stop)
743 i = bisect(v, start)
744 if start > 2:
--> 745 if v[i] == start:
746 i -= 1
747 w = list(v[i:])
IndexError: list index out of range
PS: I submitted that yesterday via the `Report a Problem' link. Not sure if
that arrived.
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.