Ask Your Question

Revision history [back]

The syntax in Sage has changed a little bit since 2005.

A look at the documentation for the Cremona database in Sage reveals how to run this example today:

sage: version()
'Sage Version 6.3.beta4, Release Date: 2014-06-19'
sage: for E in CremonaDatabase().iter(prime_range(100)):
....:     print "%s\t%s"%(E.cremona_label(), E.rank())
....:     
11a1    0
11a2    0
11a3    0
17a1    0
17a2    0
17a3    0
17a4    0
19a1    0
19a2    0
19a3    0
37a1    1
37b1    0
37b2    0
37b3    0
43a1    1
53a1    1
61a1    1
67a1    0
73a1    0
73a2    0
79a1    1
83a1    1
89a1    1
89b1    0
89b2    0