RE: Summations with Primes

*To*: mathgroup at smc.vnet.net*Subject*: [mg39959] RE: [mg39932] Summations with Primes*From*: "David Park" <djmp at earthlink.net>*Date*: Thu, 13 Mar 2003 03:02:33 -0500 (EST)*Sender*: owner-wri-mathgroup at wolfram.com

Anthony, Look up Prime and PrimePi in Help. For a sum using only primes <= 100.... Sum[f[Prime[i]], {i, 1, PrimePi[100]}] f[2] + f[3] + f[5] + f[7] + f[11] + f[13] + f[17] + f[19] + f[23] + f[29] + f[31] + f[37] + f[41] + f[43] + f[47] + f[53] + f[59] + f[61] + f[67] + f[71] + f[73] + f[79] + f[83] + f[89] + f[97] David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ From: Anthony Felder [mailto:afelder at crsi.org] To: mathgroup 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