Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: Summations with Primes

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


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

From: Anthony Felder [mailto:afelder at]
To: mathgroup at

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

  • Prev by Date: RE: This should evaluate to zero
  • Next by Date: Re: Summations with Primes
  • Previous by thread: Re: Summations with Primes
  • Next by thread: Re: Summations with Primes