Hellooooooo everybody ! Earlier today Vincent and I needed to enumerate some twin primes (integers x such that x and x+2 are both primes).
We were lucky, for Sage contains a twinprimes object. sage: twinprime twinprime sage: twinprime(4) /home/ncohen/.Sage/local/lib/python2.7/site-packages/IPython/core/interactiveshell.py:2883: DeprecationWarning: Substitution using function-call syntax and unnamed arguments is deprecated and will be removed from a future release of Sage; you can use named arguments instead, like EXPR(x=..., y=...) See http://trac.sagemath.org/5930 for details. ... ValueError: the number of arguments must be less than or equal to 0 sage: twinprime() twinprime sage: twinprime()()()()()()()()()()()()() twinprime sage: twinprime()==twinprime twinprime == twinprime As you can see, it is not immediately obvious what this object is. And Sage's doc for "twinprime?" is not exactly... Explicit. Explanation: it turns out that for Sage, "twinprimes" is a constant, like pi, e, gamma, ... And for all these objects the documentation is the same, and for all of them the doc is a bit unclear. SOooooooooooooooooooo if somebody understands how these symbolic objects work, would it be possible to indicate it in their documentation ? I'm sure we can find quite interesting things to say about pi or e in Sage. And it would help the next guy solve the twinprimes mystery ;-) Have fuuuuuuuuuuuuuuuuuun ! Nathann -- 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.