I don't like the "educational" name, since it can be misleading. Some could think that they are functions that are useful for teaching (in this case, for teaching basic concepts about prime numbers), whereas what we would be meaning is that its educational value would be in looking at the code itself and learning how to code.
It is not the case of the Erathostenes sieve, but in some other cases (like buchberger), these toy methods are not only there for people to learn about them, but also can be used as a fallback for the cases where no fast implementation is available (yes, they can be horribly slow, but horribly slow is sometimes better than nothing). El miércoles, 25 de febrero de 2015, 18:55:17 (UTC+1), Jeroen Demeyer escribió: > > Hello, > > Should there be code in Sage which is extremely slow and for educational > purposes only? I am talking about eratosthenes() which is just a very > slow alternative to prime_range(). > > I would just remove that code, but maybe people have other opinions... > > Jeroen. > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.