Question: Sum elements of a set

Hi, I've searched for this in mapleprimes.com before registering myself in the site, and found nothing. Maybe someone can help me with this. I've generated a set of prime numbers below 1000 using: genprime := proc (n) select(isprime, {$1 .. n)}) end proc Now I want to sum all the elements from the set genprime(1000). Is it possible? Thanks in advance, André
Please Wait...