Re: Summations with Primes
- To: mathgroup at smc.vnet.net
- Subject: [mg39964] Re: [mg39932] Summations with Primes
- From: Tomas Garza <tgarza01 at prodigy.net.mx>
- Date: Thu, 13 Mar 2003 03:03:04 -0500 (EST)
- References: <200303120729.CAA19087@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Perhaps something like this?
In[1]:=
Sum[If[PrimeQ[i], i^2, 0], {i, 1, 5}]
Out[1]=
38
Tomas Garza
Mexico City
----- Original Message -----
From: "Anthony Felder" <afelder at crsi.org>
To: mathgroup at smc.vnet.net
Subject: [mg39964] [mg39932] Summations with Primes
>
> 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
>
>
>
- References:
- Summations with Primes
- From: "Anthony Felder" <afelder@crsi.org>
- Summations with Primes