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: [mg39964] Re: [mg39932] Summations with Primes
  • From: Tomas Garza <tgarza01 at>
  • Date: Thu, 13 Mar 2003 03:03:04 -0500 (EST)
  • References: <>
  • Sender: owner-wri-mathgroup at

Perhaps something like this?

Sum[If[PrimeQ[i], i^2, 0], {i, 1, 5}]

Tomas Garza
Mexico City
----- Original Message -----
From: "Anthony Felder" <afelder at>
To: mathgroup at
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

  • Prev by Date: Re: Summations with Primes
  • Next by Date: Linux - Large memory systems
  • Previous by thread: Re: Summations with Primes
  • Next by thread: Re: Summations with Primes