First time here? Check out the FAQ!
answered 2013-01-17 01:07:59 +0100
There are already several functions which give the primes or number of primes in a particular range, in Sage - prime_pi, prime_range, primes, primes_first_n, etc.
prime_pi
prime_range
primes
primes_first_n