What can I do so that the following code works:
sage: var('k')
sage: sum(nth_prime(k),k,1,10)
ValueError: cannot convert k to int
Thanks in advance!
| 1 | initial version |
What can I do so that the following code works:
sage: var('k')
sage: sum(nth_prime(k),k,1,10)
ValueError: cannot convert k to int
Thanks in advance!
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.