Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Generate a list/table for cardinality of elliptic curve

Hi all. I am quite new in SAGE. I have tried SAGE to find the cardinality for every prime number like this:

sage: E = EllipticCurve(GF(13),[-2,3])
sage: E.cardinality()

For this, I try prime number 13 and get the answer 18. This mean that I need to input a new prime number every time manually. What the code to generate/make a list or table of answers for a set of prime numbers (hopefully can integrate "primes_first_n()") which can go to large prime?

Many thanks =)

click to hide/show revision 2
retagged

Generate a list/table for cardinality of elliptic curve

Hi all. I am quite new in SAGE. I have tried SAGE to find the cardinality for every prime number like this:

sage: E = EllipticCurve(GF(13),[-2,3])
sage: E.cardinality()

For this, I try prime number 13 and get the answer 18. This mean that I need to input a new prime number every time manually. What the code to generate/make a list or table of answers for a set of prime numbers (hopefully can integrate "primes_first_n()") which can go to large prime?

Many thanks =)