Sum of primes between given range Write the shortest code for finding the sum of primes between \$a\$ and \$b\$ (inclusive).
Input

\$a\$ and \$b\$ can be taken from command line or stdin (space seperated)
Assume \$1 \le a \le b \le 10^8\$

Output
Just print the sum with a newline character.
Bonus Points

If the program accepts multiple ranges (print one sum on each line), you get extra points. :)
J,41 32 19 characters:
Update
(simple sieve)
g=:+/@(*1&amp;p:)@-.&amp;i.

e.g.
100 g 1
1060
250000x g 48
2623030823

Previous
h=:3 :'+/p:i.(_1 p:&gt;:y)'
f=:-&amp;h&lt;:

eg:
100 f 1
1060