Re: Summations with Primes
- To: mathgroup at smc.vnet.net
- Subject: [mg40056] Re: Summations with Primes
- From: "Dana DeLouis" <delouis at bellsouth.net>
- Date: Tue, 18 Mar 2003 02:21:14 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Here's my attempt:
SumPrimesBetween[min_, max_] :=
Module[{},
Plus @@ Prime[Range[PrimePi[min] + If[PrimeQ[min], 0, 1],
PrimePi[max]]]
]
--
Dana DeLouis
Windows XP
$VersionNumber -> 4.2
= = = = = = = = = = = = = = = = =
"Anthony Felder" <afelder at crsi.org> wrote in message
news:b4mnus$imf$1 at smc.vnet.net...
>
> Can you tell me if, when calculating a summation of f(i) where i goes
> from imin to imax, Mathematica can be forced to only use prime values
> for i?
>
> Thank you for your time
>
> Anthony Felder
>
>